1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

500 Error Multiple Sites, Hostgator

Discussion in 'Web Hosting' started by BHopkins, Jun 9, 2017.

Thread Status:
Not open for further replies.
  1. BHopkins

    BHopkins Moderator Staff Member Moderator Jr. VIP

    Joined:
    Dec 31, 2010
    Messages:
    2,400
    Likes Received:
    1,464
    Gender:
    Male
    Occupation:
    ORM and SEO company owner
    Location:
    California
    Home Page:
    I buy my domains through Namecheap and host with Hostgator. The last ~10 domains that I've bought and setup (wordpress) all show a 500 error every couple days. I've chatted with Hostgator a couple times and they're completely useless. I moved an entire site to a different server and it happened again and they blamed it on the site. I deleted everything, and reinstalled a blank WP install, two days later it happened again.

    If I log into Wordpress, the site immediately starts working again (refresh and 500 error is gone).

    Can you happen to think of what might be going on? It's only the most recent domains, they're hosted on different shared accounts (different IP, nameservers, login info, etc.).

    I have verified the "fix" of logging into WP on 6 different sites that were giving me a 500 error. They all run the same plugins, Akismet, IWP, Imagify, W3 Total Cache. Those same plugins are running on all of my sites so I don't think it's a plugin issue.

    Thanks for your help!
     
    • Thanks Thanks x 1
  2. towelfox

    towelfox Junior Member

    Joined:
    Jan 11, 2012
    Messages:
    173
    Likes Received:
    55
    500s are server errors. Check your log files and all will be revealed.
     
    • Thanks Thanks x 1
  3. SlickSocials

    SlickSocials Jr. VIP Jr. VIP

    Joined:
    Mar 24, 2017
    Messages:
    234
    Likes Received:
    56
    Gender:
    Male
    Occupation:
    SlickSocial's Manager
    Location:
    Slickroad
    Home Page:
    • Thanks Thanks x 1
  4. sam.hunt0710

    sam.hunt0710 Jr. VIP Jr. VIP

    Joined:
    Feb 22, 2011
    Messages:
    4,758
    Likes Received:
    1,766
    Gender:
    Male
    Occupation:
    Owner Of a IT Comapny
    Location:
    India
  5. BHopkins

    BHopkins Moderator Staff Member Moderator Jr. VIP

    Joined:
    Dec 31, 2010
    Messages:
    2,400
    Likes Received:
    1,464
    Gender:
    Male
    Occupation:
    ORM and SEO company owner
    Location:
    California
    Home Page:
    Logs are clean. Last error message was about two months ago. Error was 15 minutes ago, but nothing in the logs.

    Hostgator error page isn't much help as I haven't touched my .htaccess file (same as the 200+ other sites). cPanel > Errors (Error Log) is totally empty. Sites are very small and it's not all the sites on the server, just one or two.

    I have W3 Total Cache running on 200+ installs and none of them have problems except these last couple of new sites.
     
  6. sam.hunt0710

    sam.hunt0710 Jr. VIP Jr. VIP

    Joined:
    Feb 22, 2011
    Messages:
    4,758
    Likes Received:
    1,766
    Gender:
    Male
    Occupation:
    Owner Of a IT Comapny
    Location:
    India
    Deactivate all plugins , then star activating plugins 1 by 1 , the plugin which is creating problem you can catch that one easily and remove that plugin.
     
  7. Bargain Boss

    Bargain Boss Newbie

    Joined:
    Apr 6, 2016
    Messages:
    43
    Likes Received:
    15
    What type of 500 error is it? 500 Internal Server Error or HTTP Error 500?

    Can you post a screenshot of the error page (and block out your domain name)?
     
  8. BHopkins

    BHopkins Moderator Staff Member Moderator Jr. VIP

    Joined:
    Dec 31, 2010
    Messages:
    2,400
    Likes Received:
    1,464
    Gender:
    Male
    Occupation:
    ORM and SEO company owner
    Location:
    California
    Home Page:
    Attached!
     

    Attached Files:

  9. Bargain Boss

    Bargain Boss Newbie

    Joined:
    Apr 6, 2016
    Messages:
    43
    Likes Received:
    15
    From your screenshot, that's a 500 Internal Server Error.

    Check whether the root directory of your cPanel is correctly entered in the .htaccess, .user.ini, wp-config.php, and the PHP file of your security plugin. If your cache plugin has a PHP file listed on the same page as .htaccess and the other files mentioned above, check whether it has the correct root directory too.

    I have not used InfiniteWP so I am not sure if the root directory is required/listed in any of its files. You should take a look.

    Look at the readme.html file and delete any suspicious long strings of alphanumeric letters.


    Edit: I was on mobile earlier. I just checked my notes on my PC and confirmed that the files you should check for are .htaccess, user.ini, wp-config.php, and the PHP file of your security plugin. Please refer to the image what I meant by root directory.

    [​IMG]
     
    Last edited: Jun 9, 2017
  10. CenTex Hosting

    CenTex Hosting Jr. VIP Jr. VIP

    Joined:
    Nov 8, 2009
    Messages:
    1,900
    Likes Received:
    719
    Gender:
    Male
    Occupation:
    Founder/CEO
    Location:
    Austin, TX
    Home Page:
    @BHopkins

    Are you set up on a shared or VPS plan with Hostgator?

    If you want I can set one site up on one of our servers for you. NO COST For this. Just to help figure out what is going on.

    I would set up one domain for you and give you logins to load the site up. Then we can track and see if the same thing happens here. If it does then one of our admins can figure out the issue and get it fixed and then we can see if it happens after fix. If not Then you can load your site back over at HG and I will close out the account with us.

    Just our way to give back and help out a MOD here.
     
    • Thanks Thanks x 1
  11. SlickSocials

    SlickSocials Jr. VIP Jr. VIP

    Joined:
    Mar 24, 2017
    Messages:
    234
    Likes Received:
    56
    Gender:
    Male
    Occupation:
    SlickSocial's Manager
    Location:
    Slickroad
    Home Page:
    Check your Plugins if you are using wordpress on them, some of the plugins makes conflicts , with each other > all the caches cleaners > and defenders plugins
     
  12. Skyebug77

    Skyebug77 Jr. VIP Jr. VIP

    Joined:
    Mar 22, 2012
    Messages:
    1,938
    Likes Received:
    1,357
    Occupation:
    Marketing
    Location:
    Portland,Or
    I have one of my sites doing the exact same thing which is hosted on HG. Luckily its the only site I have on HG
     
  13. kmoore

    kmoore Newbie

    Joined:
    Oct 6, 2009
    Messages:
    47
    Likes Received:
    3
    Check your apache error logs - it will reveal whats causing this error.
    Only after recognizing whats causing this error - one can provide a solution to it.
    As other member stated - you can disable all the plugins and enable them one by one to identify the problem.
     
  14. Naveen Onlive

    Naveen Onlive BANNED BANNED

    Joined:
    Jun 10, 2017
    Messages:
    25
    Likes Received:
    0
    Gender:
    Male
    Hi,

    you should update htacess file on root floder ..
     
  15. GoDesain

    GoDesain Regular Member

    Joined:
    Feb 26, 2011
    Messages:
    447
    Likes Received:
    138
    Home Page:
    i think this from hostgator side.. and you on shared server ?
    but much better if you recheck again.. try to check .htacess, permission file and folder and and increase time out..
    if i got 500 error.. i try to check my plugin 1 by 1 just make sure everything ok.
     
  16. BHopkins

    BHopkins Moderator Staff Member Moderator Jr. VIP

    Joined:
    Dec 31, 2010
    Messages:
    2,400
    Likes Received:
    1,464
    Gender:
    Male
    Occupation:
    ORM and SEO company owner
    Location:
    California
    Home Page:
    Thanks for all the feedback. I've checked everything that was suggested and still am having trouble. Frustrating when 10 of my recent sites are constantly down. I have to log into them manually to make them drop the 500 error. Even more frustrating that I have over 200 sites with Hostgator and their support won't actually help.
     
  17. MayaK

    MayaK Newbie

    Joined:
    Sep 20, 2013
    Messages:
    39
    Likes Received:
    4
    Occupation:
    Business
    Location:
    India
    I think in that case its server end issue, if they are not helping move from them, I host my wordpress sites with Webhost.uk.nethttps://www.webhost.uk.netsince 2010 support has been great till date any issues as you have faced support tries to help me all possible way thats the reason I am still with them.
     
  18. BHopkins

    BHopkins Moderator Staff Member Moderator Jr. VIP

    Joined:
    Dec 31, 2010
    Messages:
    2,400
    Likes Received:
    1,464
    Gender:
    Male
    Occupation:
    ORM and SEO company owner
    Location:
    California
    Home Page:
    Along with Hostgator's third level of tech support, I think I've identified the problem. I have been using W3 Total Cache and using the same configuration file for the last year. At some point W3 updated their settings which caused a problem with my config file. When I disabled W3 on all of the problem sites, they have been working for about 12 hours which is longer than normal. The strange thing is that I disabled W3 on sites and then reenabled it, but it kept the settings which remained broken.
     
  19. Diplomat

    Diplomat Jr. VIP Jr. VIP

    Joined:
    Oct 25, 2011
    Messages:
    949
    Likes Received:
    441
    Home Page:
    500 errors are almost always PHP errors. Sometimes they can come from incorrect .htaccess configuration. Easiest thing to do is check error_log files (keep in mind that they can appear in any directory).
    Another thing you can check is errors in cPanel errors page.
     
  20. sam.hunt0710

    sam.hunt0710 Jr. VIP Jr. VIP

    Joined:
    Feb 22, 2011
    Messages:
    4,758
    Likes Received:
    1,766
    Gender:
    Male
    Occupation:
    Owner Of a IT Comapny
    Location:
    India
    @BHopkins I suggested you in my first post to do that sometime logs files of cache plugins create such problems.
     
    • Thanks Thanks x 1
Thread Status:
Not open for further replies.