PHP scripts in WHM plugin not working for resellers ?

stephane02

Member
Dec 14, 2011
13
0
51
cPanel Access Level
Root Administrator
Hello,

I'm trying to fix a WHM I made that shows blank when you're logged in
as reseller but showing fine when you're root. Any idea if it's because
I'm using PHP to code the plugin ?

thx

Stephane
 

KostonConsulting

Well-Known Member
Verifed Vendor
Jun 17, 2010
255
1
68
San Francisco, CA
cPanel Access Level
Root Administrator
By default, resellers cannot execute PHP. You'll need to follow these steps to allow PHP execution by resellers:

1. Add this line to /var/cpanel/cpanel.config:

Code:
disable-php-as-reseller-security=1
2. Run this command to ensure the changes are saved:

Code:
/usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings