WHM Plugin in PHP, Where to Copy the PHP files?

drako

Member
Dec 30, 2013
13
0
1
cPanel Access Level
Website Owner
Hello,

i am developing a WHM plugin in php.

i have been through the guide, it says that i should copy my plugin to /usr/local/cpanel/whostmgr/docroot/cgi/plugin_name

which i guess is the CGI wrapper pointing to my php files.

i am wondering where should i copy my php files?

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
Hello :)

You should be able to place the PHP files in any root level directory (e.g. /usr/local/cpanel/whostmgr/docroot/cgi/plugin_name). Ensure you review the following document:

Creating WHM Plugins

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
It looks like our documentation changed slightly since the time that link was posted. I've updated the URL to the new one located at:

Guide to WHM Plugins

Thank you for pointing this out.