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.

phpsuexec and htdocs

Discussion in 'General Discussion' started by closet geek, Dec 15, 2006.

  1. closet geek

    closet geek Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    I can't get PHP scripts to execute from within the htdocs, there are no suexec errors but Apache gives:

    (13)Permission denied: exec of script.php

    The script is owned by root:root, it is chmod 644. Apache has ExecCGI added to the <Directory "/usr/local/apache/htdocs"> virtualhost.

    I've tried the script with and without the hash bang line.

    cg
     
  2. closet geek

    closet geek Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Turns out files and folders in the htdocs directy must be 755. I thought phpSuExec allowed much lower permissions to be set. Ho hum!

    cg
     
  3. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    With phpsuexec, files have to be 644 and folders have to be 755 or 751. If a folder is 644 it will be inacessible for everything; folders need execute permission for everything, nothing to do with phpsuexec.
     
Loading...

Share This Page