watermelon1111
12-08-2006, 12:22 PM
I am getting ready to install phpSuExec on a fairly large VPS (i.e. thousands of files). I'm looking for the best way to prepare for this process with minimal disruption to service. What I'm planning to do is:
1. .htaccess: Replace .htaccess files with php.ini files
2. Permissions: I was given this script by the PowerVPS support folk:
find /home -type f | grep .php$|xargs chmod 600
Does anyone know if #2 is the best way to approach the permissions issue? May be it isn't even necessary. As far as I know, very few files are 777 right now. My understanding is that everything needs to be 755 or less, so I was thinking that maybe I would start with find /home -type f | grep .php$|xargs chmod 755 instead.
Any pointers from folks who have been through this process would be greatly appreciated.
1. .htaccess: Replace .htaccess files with php.ini files
2. Permissions: I was given this script by the PowerVPS support folk:
find /home -type f | grep .php$|xargs chmod 600
Does anyone know if #2 is the best way to approach the permissions issue? May be it isn't even necessary. As far as I know, very few files are 777 right now. My understanding is that everything needs to be 755 or less, so I was thinking that maybe I would start with find /home -type f | grep .php$|xargs chmod 755 instead.
Any pointers from folks who have been through this process would be greatly appreciated.