Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

List of permission checks in order to get suPHP to work?

Discussion in 'General Discussion' started by neorder, Feb 10, 2009.

  1. neorder

    neorder Well-Known Member

    Joined:
    Jun 16, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    156
    Is it to complile a "List of permission checks in order to get suPHP to work?"

    I've some scripts stopped working after we changed to suPHP from DSO.

    May I know where should I start to check?

    Thank.
     
  2. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    847
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    All I've had to do is make sure the ownerships are correct, and that nothing is world write-able. I used the following commands in terminal to fix sites when I switched from DSO to suphp. (change user for the actual username of course).

    Code:
    chown -R user:user /home/user/public_html/* ;
    find /home/user/public_html/ -type d -exec chmod 755 {} \;
    find /home/user/public_html/ -type f -exec chmod 644 {} \;
    
    The first line corrects ownership. The second perms on directories and the third on files.
     
Loading...

Share This Page