fixing internal server error caused by SuPHP handler in apache

Filed in Apache 2 comments

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:

  1. Changing Ownership of file and folders in Linux
  2. dot net panel installation error “sql server does not exist or access denied”
  3. How to stream flv with apache and jwplayer in linux server?
  4. backup and restore Cpanel accounts with command line usnig ssh
  5. The Most usabel Lniux Commands
Posted by voshka   @   22 May 2010 2 comments

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

2 Comments

Comments
May 25, 2010
6:58 am
#1 saeed :

hi woshka
what are u doing?
you are best.

Author May 25, 2010
7:05 am
#2 voshka :

HI
I’m doing Greate

Thanks

Leave a Comment

Previous Post
«
Next Post
»
CrossBlock designed by DeltaManual.Com  |  In conjunction with Web Hosting   |   Web Hosting   |   Reverse phone