tecwithquestion

Well-Known Member
Oct 20, 2014
65
2
58
cPanel Access Level
Root Administrator
Hello

I have some which are running on my domain url (domain.com/tools/index.php)

I want to use these tools as plugin in cpane. but when I moved tools folder in /usr/local/cpanel/base/frontend/x3 and tried to run index.php I got blank space and in error log I found

PHP Warning: require(structures/header.php): failed to open stream: No such file or directory in /tmp/cpanel_phpengine.1423956851.22534XxgMtnJbTu on line 5
PHP Warning: require(structures/header.php): failed to open stream: No such file or directory in /tmp/cpanel_phpengine.1423956851.22534XxgMtnJbTu on line 5
PHP Fatal error: require(): Failed opening required 'structures/header.php' (include_path='/usr/local/cpanel/3rdparty/php/54/lib/php:.') in /tmp/cpanel_phpengine.1423956851.22534XxgMtnJbTu on line 5


Can you tell me how can I use tools folder from cpanel ?
 

tecwithquestion

Well-Known Member
Oct 20, 2014
65
2
58
cPanel Access Level
Root Administrator
Hello

I managed to make it working.

Is there way I can disable some plugins in the demo mode ? Like if user login as demo user, and if he click on my plugins he will get msg that this function is disabled in demo mode.

can we do this ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
You can create a separate feature list and package for your demo accounts via:

"WHM Home » Packages » Feature Manager"
"WHM Home » Packages » Add a Package"

Then, ensure the demo accounts are assigned that package.

Thank you.