adam3000 Posted August 2, 2013 Share Posted August 2, 2013 I've been having random 500 Internal Server errors on my PHP / MySQL based sites on various shared hosts. I'm using PHP 5.2.17 through CGI/FastCGI on a shared Linus server. When I look in the logs, I see this: [error] [client 75.71.176.224] (104)Connection reset by peer: FastCGI: comm with server "/dev/shm/blackmou-php.fcgi" aborted: read failed, referer: ...[error] [client 75.71.176.224] FastCGI: incomplete headers (0 bytes) received from server "/dev/shm/blackmou-php.fcgi", referer: ...[error] [client 75.71.176.224] (104)Connection reset by peer: FastCGI: comm with server "/dev/shm/blackmou-php.fcgi" aborted: read failed, referer: ...[error] [client 75.71.176.224] FastCGI: incomplete headers (0 bytes) received from server "/dev/shm/blackmou-php.fcgi", referer: ... Anyone know how to resolve this? Quote Link to comment Share on other sites More sharing options...
ShodaN Posted October 8, 2013 Share Posted October 8, 2013 I had similar issues, and it turned out the memory limit settings (memory_limit) in my php.ini were too low. With FastCGI, in order to get some PHP errors, you have to set logging to a file instead of displaying them. When you display the PHP errors, this code just ends up confusing FastCGI, which then results in an Apache server error (500). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.