The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP scripts in WHM plugin not working for resellers ?

Discussion in 'cPanel Developers' started by stephane02, Mar 20, 2012.

  1. stephane02

    stephane02 Member

    Joined:
    Dec 14, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. KostonConsulting

    KostonConsulting Well-Known Member

    Joined:
    Jun 17, 2010
    Messages:
    255
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    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
    
     
  3. stephane02

    stephane02 Member

    Joined:
    Dec 14, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you so much! It works fine :)
     
Loading...

Share This Page