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 runs on port 2086 as ROOT but fails when running as reseller.

Discussion in 'General Discussion' started by Roy@ENHOST, Oct 20, 2004.

  1. Roy@ENHOST

    Roy@ENHOST Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    495
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Los Angeles California
    Hi guys, I created a hello world script and uploaded it to /usr/local/cpanel/whostmgr/docroot/

    HTML:
    <? echo "hello world"; ?>
    When I login as root and access the page from https://IP:2087/helloworld.php it works. :)
    When I login as reseller and try to access that page, it parses the PHP file as text. :mad:

    Any idea why? Any way to get around this problem??? :eek:
     
  2. Rafaelfpviana

    Rafaelfpviana Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brazil
    I would like to know how to make php work for resellers as well, anyone knows?
     
  3. WEB-PROS

    WEB-PROS Well-Known Member

    Joined:
    Feb 19, 2006
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    If im correct it could be to do with the file permisions, maybe the file is set to be owned by the root which it probably is as you created it in SSH.

    You will probabably need it to be owned by all users, have a see what the cpanel's files are set to.
     
  4. Rafaelfpviana

    Rafaelfpviana Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brazil
    nope, that didn't work
     
Loading...

Share This Page