Greetings,
A client’s site has suddenly (in the last week) begun to shut down due to 500 internal server errors. The site has worked fine for months, and, without anything changing (to my knowledge), these errors have arrived.
I have been working with the hosting provider, HostGator, to resolve. They say that a series of runaway processes, called through the index.php file, are exceeding the hosting limits and causing the error pages. It is worth stating that this is a site with a very low activity level right now, as the client is still developing their content and market - twenty visitors a day would surprise me. So I think site traffic can be safely ruled out as culprit.
I have several times had them kill the processes. Sometimes this opens the site up for a brief period before the 500s return, sometimes to no avail. Last evening I had the time to have the processes killed long enough to update the EE version from 1.6.2 to 1.6.6. I also trouble-shot the directory permissions (they recommended that in their environment, all 777s should be 755s) and the .htaccess file (one line in the .htaccess was particularly suspicious - I had had lots of problems previously with EE not working in HostGator environments after the upgrade to PHP 5, so all my EE sites with HostGator have to run in PHP 4 ... there is a line in the .htaccess files for these sites specifying such). After ruling out the permissions and .htaccess, I updated the EE install to current version. It seemingly worked. The processes were killed, the update script ran, and the site worked fine for the 10 minutes I explored and checked out its performance.
This morning, the 500s are back. I don’t know what else to do. The client’s site is completely down till these processes are curbed. Again, the site worked perfectly for months, and no functional files had been changed to cause sudden problems (to my knowledge).
Please advise as to how to track down the cause of the processes (since they are called through the index.php in the root directory, doesn’t it have to be EE?).