There are lots of times that you may be encountered this error on your websites on the server
“HTTP Error 500 – Internal server error”
Even after transfering your site to a new web hsoting or by changing the handler on suphp on your panel let say cpanel.
As the SUPHP is sensitive for permission other than 755 for directories and 644 for files and that will result in an internal serve error
Also all of the accounts files and folders must have an ownership equal to their acount username meaning a file with sam ownership in a directory of another user account lets say peter will also result in an internal server error
To resolvce account ownership or permission on every account modifiy the follwing code with desired username then run it into your ssh
Correcting Directory Ownership
find /home/username/public_html -type d -exec chown username:username '{}' \;
Correcting Files Ownership
find /home/username/public_html -type f -exec chown username:username '{}' \;
Correcting Directory Permision
find /home/username/public_html -type d -exec chmod 755 '{}' \;
Correcting Files Permision
find /home/username/public_html -type f -exec chmod 644 '{}' \;
find /home/username/public_html -type d -exec chown username:username '{}' \;
find /home/username/public_html -type f -exec chown username:username '{}' \;
find /home/username/public_html -type d -exec chmod 755 '{}' \;
find /home/username/public_html -type f -exec chmod 644 '{}' \;
voshka
thanks
Related posts:
- Changing Ownership of file and folders in Linux
- dot net panel installation error “sql server does not exist or access denied”
- How to stream flv with apache and jwplayer in linux server?
- backup and restore Cpanel accounts with command line usnig ssh
- The Most usabel Lniux Commands
6:58 am
hi woshka
what are u doing?
you are best.