nicks-domain.com

FastCGI Permissions

FastCGI requires different permissions than suPHP. See below for a script that will correct the permissions for you.

 

account=$1
find /home/$account/public_html -type d -exec chmod -v 775 {} \;
find /home/$account/public_html -type f | xargs -r chmod -v 664
find /home/$account/public_html -name '*.cgi' -o -name '*.pl' | xargs -r chmod -v 775
chmod 770 /home/$account/public_html/
chown -v -R $account:nobody /home/$account/public_html/

 

Just make sure that $account is the cpanel username.




Leave a Reply

Your email address will not be published. Required fields are marked *