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!

Switching to PHPsuexec - Step by Step List

Discussion in 'General Discussion' started by mousepotatoe, Oct 7, 2005.

  1. mousepotatoe

    mousepotatoe Active Member

    Joined:
    Dec 17, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    156
    I am preparing to switch over to phpsuexec

    In doing this I expect every site that I have on my server to break due to permissions, etc...

    I have searched the forums over but cannot find a guide that shows how to quickly repair mass errors.

    I would like to be able to run a string of commands in ssh to quickly set proper permissions, ownership to correct as many sites as possible as quickly as possible such as

    Code:
    [SIZE=1]find /home/*/public_html -name '*.php' -o -name '*.php[34]'  -o -name '*.phtml' | xargs chmod -v 755[/SIZE]
    Then running

    Code:
    chown -R username1:username1 /home/username1
    chown -R username2:username2 /home/username2
    chown -R username3:username3 /home/username3
    chown -R username4:username4 /home/username4
    Then running

    Code:
    /scripts/postsuexecinstall
    Does this look right?

    Your input would be greatly appreciated :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Doing those chowns will break all the sites. To do those you ought to run:

    /scripts/chownpublichtmls
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice