Thursday, 24 September 2009

PHPsuexec: Fix permissions for “Internal Server Error”

Run the following commands from the user’s public_html directory:
(MAKE SURE YOU’RE IN THE PUBLIC_HTML DIRECTORY)

find -type d -exec chmod 755 ‘{}’ ;
find -type f -exec chmod 644 ‘{}’ ;
find -iname “*.pl” -exec chmod 755 ‘{}’ ; -o -iname “*.cgi” -exec chmod 755 ‘{}’ ;
chown `pwd|cut -d/ -f3`.`pwd|cut -d/ -f3` -R .

No comments:

Post a Comment