Results 1 to 26 of 26
  1. #1
    Join Date
    Dec 2004
    Location
    Ottawa, ON
    Posts
    41

    All sites have 500 errors

    I have about 100 sites on my server and all are going 500 internal server error. What could cause this to happen? I don't see anything in the apache error logs other than the normal stuff (favico and missing 404 errors).

  2. #2
    Join Date
    Dec 2004
    Location
    Ottawa, ON
    Posts
    41
    It seems that some have 403 errors as well.

  3. #3
    Join Date
    Jan 2005
    Location
    Darwin, Australia
    Posts
    1,333
    Anything changed with PHP?
    This could happen for example if suPHP was installed on the server
    Graham Craig

    "IT'S NOT HOW GOOD YOU ARE, IT'S HOW BAD YOU WANT IT."

  4. #4
    Join Date
    Dec 2004
    Location
    Ottawa, ON
    Posts
    41
    No, nothing and the new development is that it's across to vps servers I have. Not just one.

  5. #5
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    436
    before anything take a backup for your files, then check the owner for the files,

    Code:
    chown owner:owner filename
    or

    Code:
    chown owner:owner *.php
    if not work, check the permission

    Code:
    chown *.php 755 { or 644 if they needed }
    if nothing works check the .htaccess file if it there, or some rules missed.

  6. #6
    I think all 500 errors would regard to server errors and wrong configurations on script permissions.
    Men, women and kids air jordan shoes,
    air jordan fusion shoes shop online.

  7. #7
    Join Date
    Nov 2003
    Location
    Kherson, Ukraine
    Posts
    267
    Error 500 must be logged.
    May be you have few error logs, for example for virtual hosts?
    May be you using apache 1.3 and your log grown larger than 2GB?
    Private remote administrator of Linux servers - www.petrov.ks.ua
    Quality hosting - Host-Web-Site.com

  8. #8
    Join Date
    May 2009
    Location
    On a Speck!!!!!
    Posts
    216
    Clear the Apache logs and then give it a try.
    Regards,
    Tom.

    Freelance System Administrator

  9. #9
    Join Date
    Aug 2009
    Posts
    79
    Might be PHP segmentation fault.

  10. #10
    Your server configurations might be changed.

  11. #11
    Quote Originally Posted by wmowat View Post
    I have about 100 sites on my server and all are going 500 internal server error. What could cause this to happen? I don't see anything in the apache error logs other than the normal stuff (favico and missing 404 errors).
    What do the logs say? Logs are saved under /usr/local/apache/logs/error_log
    | LinuxHostingSupport.net
    | Server Setup | Security | Optimization | Troubleshooting | Server Migration
    | Monthly and Task basis services.
    | MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux

  12. #12
    Join Date
    Feb 2006
    Location
    India
    Posts
    858
    Could be a problem with file permissions.

  13. #13
    This errors indicate that there is definetley something wrong with the web server where your all sites are located. Its seems that something is gone wrong with your apache server. Check the permission of the directories containing the web sites this should be 755.
    Support Facility | 24/7 web hosting technical support services
    Technical support | Server management | Data migration

    Technical Articles

  14. #14
    Join Date
    Oct 2003
    Location
    Morocco
    Posts
    549
    did you recently changed php config / installed suexec or such ?
    RofyHost - Affordable Shared & Reseller Hosting Since 2003
    Proud Moroccan

  15. #15
    Join Date
    Dec 2004
    Location
    Ottawa, ON
    Posts
    41
    I didn't, but Unixy was able to help me get it fixed. It turned out that all file permission were changed. I'm not sure how that could have happened. I didn't touch anything on the server before it happened so I think it was either a) a security breach, or b) a failed update to cpanel or possibly a 3rd party add on?

  16. #16
    Join Date
    Dec 2004
    Location
    Ottawa, ON
    Posts
    41
    What's interesting is, I have two boxes and they both ended up going the same route about an hour apart. The login information on both is different which makes me suspect some kind of auto update did it...SSHD was failing this morning and when I tracked down the error it was file permissions yet again...

  17. #17
    Join Date
    Dec 2004
    Location
    Ottawa, ON
    Posts
    41
    I just wanted to give a shoutout to unixy.net for their help. Very fast and knowledgable support guys over there... I averted a disaster and it was all thanks to the techs at unixy.net's in depth knowledge. I spent hours looking for a resolution and they solved the problem in a matter of minutes! Get in touch with Unixy if you run into any crippling errors before you give up!

  18. #18
    Quote Originally Posted by wmowat View Post
    I have about 100 sites on my server and all are going 500 internal server error. What could cause this to happen? I don't see anything in the apache error logs other than the normal stuff (favico and missing 404 errors).
    check permissions - if you install suphp/suexec 777 is not allowed, 755 would be the highest permission allowed.

    You could also check some cpanel error logs that will also tell you some information needed to troubleshoot

  19. #19
    Join Date
    Nov 2009
    Location
    Nasik,India
    Posts
    252
    Hi,

    for 500 error then you having problem with public_html permission
    just have look there........

  20. #20
    Join Date
    Dec 2004
    Location
    Ottawa, ON
    Posts
    41
    So this happened again and its definately soemthing to do with messed up permissions. Very frustrating. I fixed it on my own this time and noticed 3 things:

    1. Public_html directories have to be chmod to 0755 when they are 0750 on my other box otherwise I get 403 errors.

    2. Seems like .htaccess files have been added to all directories.

    3. All users and groups are lost as far as ownership. They are simply blank. No owner.

    All this happens in the home dir

    I have done nothing to cause this. I was in my car driving from the office when it happened. No upgrades, no changes. The error log file is choked with htaccess errors. Permission denied so I can't see what initially caused it.

  21. #21
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,842
    For public_html normal ownership / permissions would be user:apache 750, but if you've lost the ownership then it makes sense that you'd need world-readable permissions (755).

    But only root can change ownership. That and magically-appearing .htaccess files would make me suspect you may have been rooted. What's in the new .htaccess files anyway?

    Get a security expert to take a very close look.
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

  22. #22
    Join Date
    Dec 2004
    Location
    Ottawa, ON
    Posts
    41
    Actually, the .htaccess was a false alarm...what I DID notice though was

    553-Can't open that file: Permission denied ftp

    I also loads to / in ftp and nothing is there...

    When all users try to ftp...

  23. #23
    Join Date
    Dec 2004
    Location
    Ottawa, ON
    Posts
    41
    More symptoms now. User packages have all been reset and show as have zero features (looks like they don't have permission to create their own packages)

  24. #24
    Join Date
    Dec 2004
    Location
    Ottawa, ON
    Posts
    41
    It looks like its basically a matter of re syncing cpanel and home permissions. Does anyone know how to do this? I have tried, I can get the sites up but all the backend (account creations, created dbs, creating packages) and ftp are still not working.

  25. #25
    Join Date
    Dec 2004
    Location
    Ottawa, ON
    Posts
    41
    After many hours of trial and error I fixed the problem. This worked for me:

    I had to run the following to totally recover:

    /scripts/checkbsdgroups
    /scripts/chownpublichtmls

    Followed by

    login to root whm

    go to whm >> Resellers >> Reseller Center >> Reset Resellers

    Select all Resellers under Reset package permissions to default

    Click the reset button.

    Before the next step make sure you have an ACL list created with your default permissions.

    go to whm >> Resellers >> Reseller Center >> Reset Resellers

    Select all Resellers under Apply an ACL list to multiple resellers

    Select the appropriate ACL list

    Hit apply.

    Once that is done you should be back to normal.

    You may want to also run:

    /scripts/fixeverything/
    upcp --force

    then

    service named restart
    service httpd restart

    just to clean up anything else.

  26. #26
    Join Date
    Dec 2004
    Location
    Ottawa, ON
    Posts
    41
    NOW I want to try to find out how this happened...besides the error logs (because changing file permissions may not be related to an error) where else can I log, perhaps access logs? any other locations?

Similar Threads

  1. 500 errors on CGI scripts
    By geekyhillbilly in forum Programming Discussion
    Replies: 3
    Last Post: 11-07-2009, 01:09 PM
  2. http / php 500 errors
    By Chinese Democracy in forum Hosting Security and Technology
    Replies: 11
    Last Post: 06-15-2009, 03:20 PM
  3. premature errors, 500 [urgent please]
    By NoAgendas in forum Hosting Security and Technology
    Replies: 11
    Last Post: 09-06-2006, 09:22 AM
  4. Need help with 500 errors and apache config
    By iamNakor in forum Hosting Security and Technology
    Replies: 11
    Last Post: 02-12-2005, 02:51 AM
  5. 500 Internal server errors
    By sangamg in forum Hosting Security and Technology
    Replies: 3
    Last Post: 04-07-2004, 08:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •