I have followed these instructions here:
How to create a Plugin (WHM & cPanel)
and here
cPanel Plugin File Generator - Version 68 Documentation - cPanel Documentation
I managed to get the .tar.gz file with:
Unique identifier: Wordpress_Staging
Name: Wordpress Staging
Group: Ibertrix (new group)
Priority: 99
URI: ibertrix/wpstaging/index.php
URI target: (empty)
Icon: a 48x48 png file
In index.php I put this code
I get a 500 error. Where I can debug why is not working? /var/log/apache2/error_log doesn´t show anything
I forgot! I use version 68
How to create a Plugin (WHM & cPanel)
and here
cPanel Plugin File Generator - Version 68 Documentation - cPanel Documentation
I managed to get the .tar.gz file with:
Unique identifier: Wordpress_Staging
Name: Wordpress Staging
Group: Ibertrix (new group)
Priority: 99
URI: ibertrix/wpstaging/index.php
URI target: (empty)
Icon: a 48x48 png file
In index.php I put this code
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" ); // Add the header.
?>
<?php
$get_userdata = $cpanel->uapi( // Get domain user data.
'DomainInfo', 'domains_data',
array(
'format' => 'hash',
)
);
?>
<?php
print $cpanel->footer(); // Add the footer.
$cpanel->end(); // Disconnect from cPanel - only do this once.
?>
I forgot! I use version 68
Last edited by a moderator: