Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Mar 2003
    Location
    New Jersey
    Posts
    42

    Default Internal Server Error on all sites after PHP update

    Someone please help. WHen I updated to apache 2.2 and php (from php4) using easy apache, all of my sites break with a 500 error. This is for all files residing in the direcotry (html, php, images, etc)

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2003
    Location
    Athens/GREECE
    Posts
    166
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Hello,

    First of all, check the following 2 things (if compiled with suPHP):

    1) Don't have files or directories with 777 permissions; the highest you can use is 755.

    2) Don't have files which are owned by nobody; try to run /scripts/chownpublichtmls to fix that problem.
    Sincerely,

    George Vardikos
    HyperHosting Internet Services

  3. #3
    Member
    Join Date
    Mar 2003
    Location
    New Jersey
    Posts
    42

    Default

    None of the 22 sites on my server have directories with 777 permissions. Also, none of the files for any of my sites are owned by nobody. Only the public_Html directory... ie /home/user/public_html user.nobody

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2003
    Location
    Athens/GREECE
    Posts
    166
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    It's not just the directories, the files too shouldn't have 777 permissions. Did EasyApache completed successfully? Did you try to re-run EasyApache selecting the "basic" option, so that PHP gets reconfigured with the minimum options (in order to get most of the sites back online until you contact cPanel regarding this)?

    Also did you try to move .htaccess to .htaccess.old, in case an entry in .htaccess causes this problem?
    Sincerely,

    George Vardikos
    HyperHosting Internet Services

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Take a look at your apache error log, what errors does it report?

  6. #6
    Registered User
    Join Date
    May 2005
    Posts
    1

    Default

    I am having the same problem as of today. I tried a rebuild again with easyapache and even forced a latest on php the 3rd time around. I did rename the .htacces file to old.htaccess thinking the same thing you did but no dice. This only happens for .php files and I must use SuExec for what are hopefully obvious reasons. I also made a simple index.php with one line of code, a simple string echo, still get a 500 error. I tried running /scripts/chownpublichtmls and waited a few minutes and this seemed to do the trick!
    Last edited by cyberdog; 11-16-2009 at 01:24 AM.

  7. #7
    Member
    Join Date
    Apr 2009
    Posts
    230

    Default

    Check the apache logs while accessing the site..It would pretty much tell you the reason or you can paste the error here for the experts to have a look.
    Code:
     tail -f /usr/local/apache/logs/error_log

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    As I told the person above always try to check the logs. You can waste a lot of time trying to rebuild or staring at it but most times if you check the logs it will be very obvious as to what is wrong.

Similar Threads & Tags
Similar threads

  1. Replies: 4
    Last Post: 11-19-2010, 06:44 PM
  2. Internal Server Error on all sites - CPanel Update / CentOS 4.5 Related
    By marsupillami in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-14-2007, 01:46 AM
  3. Internal server error after apache update
    By _Sam_ in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 08-05-2007, 12:13 PM
  4. After update - Bandwitch - 500 Internal Server Error
    By folk in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-09-2004, 08:41 AM
  5. Counters all have internal server error after update to stable 25
    By krisdv in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-04-2004, 02:58 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube