For fixing the suPhp error, you can use the following scripts.
1. find /home/*/public_html -type d -exec chmod 755 {} \;
This command fix all folder permission
2.
find /home/*/public_html -name '*.php' -o -name '*.php[345]' -o -name '*.phtml'| xargs chmod -v 644
This command fix all file permission
3. Create a file with the following content and give the executable permission.
#!/bin/bash
cd /var/cpanel/users
for user in *
do
chown -R $user.$user /home/$user/public_html/*
done
This script fix all ownership issue.
No comments:
Post a Comment