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.

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:
    6
    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 :)
     
  2. chirpy

    chirpy Well-Known Member

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

    /scripts/chownpublichtmls
     
Loading...

Share This Page