Hello,
I am trying to create a simple page for cpanel paper_lantern that will show a few PHP variables for the customer in their cpanel area.
I read the Tutorial to Create a New Paper Lantern Interface in PHP, but it doesn't seem to be working. It just gives an error 500 when I load the page in the cpanel.
Here is what I did:
1. Create a new file called test.php in the "/usr/local/cpanel/base/frontend/paper_lantern" folder. (File is owned by root with permissions of 644.)
2. Add this code, copied directly from the tutorial, to the the test.php file:
3. Now go to customer's cpanel, and then replace "index.html" with test.php.
I see an error 500.
Any ideas what I am doing incorrectly?
Thanks!
I am trying to create a simple page for cpanel paper_lantern that will show a few PHP variables for the customer in their cpanel area.
I read the Tutorial to Create a New Paper Lantern Interface in PHP, but it doesn't seem to be working. It just gives an error 500 when I load the page in the cpanel.
Here is what I did:
1. Create a new file called test.php in the "/usr/local/cpanel/base/frontend/paper_lantern" folder. (File is owned by root with permissions of 644.)
2. Add this code, copied directly from the tutorial, to the the test.php file:
Code:
<?php
include("/usr/local/cpanel/php/cpanel.php"); // Instantiate the CPANEL object.
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
print $cpanel->header( "Page Heading , app_key" ); // Add the header.
?>
<?php
print $cpanel->footer(); // Add the footer.
$cpanel->end(); // Disconnect from cPanel - only do this once.
?>
I see an error 500.
Any ideas what I am doing incorrectly?
Thanks!