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 .

0 comments:

Post a Comment