Go Back   HostGator Peer Support Forums > HostGator Announcements > Network Status

Notices

Reply
 
Thread Tools
  #1  
Old 12-29-2007, 09:33 PM
ftalpes ftalpes is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 3
Default 500 Internal Server Error

Hello, my websites have been down intermittently with a "500 Internal Server Error". When I check the error logs, I get the following:

Premature end of script headers: /home/xxx/public_html/xxx/index.php

I am running WordPress and have installed the WP-SuperCache (as advised by Hostgator support). I have also gotten the following reply:

This happens when you are bumping into the 25 process limit for your account. I suggest a couple of steps to improve this:

1) Switch from using IMAP to POP3 for your email downloading.
2) Make sure all cron jobs are finishing.
3) Disable persistant mysql connections.
4) Consider moving to a reseller account and moving each domain into its
own cpanel account (with its own 25 process limit) instead of as addon domains.


I am not sure if this problem is related to the Wordpress plugins I have installed, to the .htaccess file (which was recently modified by someone on the Hostgator team) or to something else.

I would appreciate any help with this!
Reply With Quote
  #2  
Old 12-29-2007, 09:36 PM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,057
Default Re: 500 Internal Server Error

Quote:
Originally Posted by ftalpes View Post
I am not sure if this problem is related to the Wordpress plugins I have installed, to the .htaccess file (which was recently modified by someone on the Hostgator team) or to something else.

I would appreciate any help with this!
Whats in your .htaccess?
Reply With Quote
  #3  
Old 12-29-2007, 09:37 PM
ftalpes ftalpes is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 3
Default Re: 500 Internal Server Error

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} !.*s=.*
RewriteCond %{HTTP_COOKIE} !^.*comment_author_.*$
RewriteCond %{HTTP_COOKIE} !^.*wordpressuser.*$
RewriteCond %{HTTP_COOKIE} !^.*wp-postpass_.*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1index.html.gz -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1index.html.gz [L]

RewriteCond %{QUERY_STRING} !.*s=.*
RewriteCond %{HTTP_COOKIE} !^.*comment_author_.*$
RewriteCond %{HTTP_COOKIE} !^.*wordpressuser.*$
RewriteCond %{HTTP_COOKIE} !^.*wp-postpass_.*$
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1index.html -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1index.html [L]
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

</IfModule>
# END WordPress
Reply With Quote
  #4  
Old 12-30-2007, 07:57 AM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,223
Default Re: 500 Internal Server Error

Quote:
Originally Posted by ftalpes View Post
1) Switch from using IMAP to POP3 for your email downloading.
2) Make sure all cron jobs are finishing.
3) Disable persistant mysql connections.
4) Consider moving to a reseller account and moving each domain into its
own cpanel account (with its own 25 process limit) instead of as addon domains.[/I]
Hmmmm this sounds like this reply is saying that you are only allowed 25 mysql connections by account? Especially with the reseller account statement!
__________________
best regards,
George
Reply With Quote
  #5  
Old 12-30-2007, 02:00 PM
ftalpes ftalpes is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 3
Thumbs up Re: 500 Internal Server Error

My problem was resolved thanks to Hostgator support.

The issue was indeed with the plugins (there were probably too many of them) - I deactivated some of them and now my sites work fine.

Thanks to everyone who replied to this thread, and also to the Hostgator support team who patiently helped me with this!
Reply With Quote
  #6  
Old 12-30-2007, 10:03 PM
phatblinkie phatblinkie is offline
Hatchling Croc
 
Join Date: Apr 2007
Posts: 15
Default Re: 500 Internal Server Error

this has been happening to me too. turns out someone or some process is chmodding my public_html folder to 0740. once changed to 0755 it works fine.
Reply With Quote
  #7  
Old 12-31-2007, 12:23 AM
phatblinkie phatblinkie is offline
Hatchling Croc
 
Join Date: Apr 2007
Posts: 15
Default Re: 500 Internal Server Error

i take it back, its still doing it even with new permissions on that folder. its not all the time though, and suspending then unsuspending seems to fix it. wtf. its also a word press site.
Reply With Quote
  #8  
Old 12-31-2007, 06:31 AM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,475
Default Re: 500 Internal Server Error

Quote:
Originally Posted by phatblinkie View Post
this has been happening to me too. turns out someone or some process is chmodding my public_html folder to 0740. once changed to 0755 it works fine.
public_html should have permissions 750
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #9  
Old 12-31-2007, 06:54 AM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,223
Default Re: 500 Internal Server Error

Quote:
Originally Posted by phatblinkie View Post
this has been happening to me too. turns out someone or some process is chmodding my public_html folder to 0740. once changed to 0755 it works fine.
If your chmod has changed you should contact support. Ask if they did it and if not you may have been hacked? As Quiet Finn stated, public_html should be 750
__________________
best regards,
George
Reply With Quote
  #10  
Old 12-31-2007, 09:43 PM
phatblinkie phatblinkie is offline
Hatchling Croc
 
Join Date: Apr 2007
Posts: 15
Default Re: 500 Internal Server Error

i cant see why any hacker would just do that, i have had sites compromised in the past and they like to change your pages, screw with things a bit etc. doesnt matter anymore. im dissappointed that a reseller account is so easily taken down. in the past i have had to cancel others service because the gator gods say they are using to many resources, yet dont show any proof. i just moved that site to another server instead of having to deal with this. Id rather not ask if they changed it, cause it would feel like asking a child if they did something when they cant understand what your saying. to date i havent had a single acceptable event with the support staff. I had my own dedicated servers for many years and then came here cause i folded my business down and just wanted to host my own sites and a few friends. ironic that a reseller account is not able to actually host a few forums, and word press sites without running into resource limits. maybe if they didnt shove 200 resellers on a box it would be different.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 11:08 PM.