Still getting 500 errors after cPanel update, suspecting Apache configuration changes or PHP handler issues

Author
Isabella Williams Author
|
1 week ago Asked
|
18 Views
|
2 Replies
0

Hey everyone, following up on the urgent 500 error thread. We're still seeing intermittent 500s after the cPanel update, and I'm starting to think it's deeper than just a simple permissions issue.

The logs are pointing to specific scripts, and I'm wondering if something in the Apache configuration or PHP handler setup got messed up. It feels like a resource limit or an incorrect handler path.

[Mon Dec 04 10:30:15.123456 2023] [fcgid:warn] [pid 12345:tid 1234567890] (104)Connection reset by peer: [client 192.168.1.1:12345] mod_fcgid: error reading data from FastCGI server, referer: https://example.com/admin
[Mon Dec 04 10:30:15.123457 2023] [core:error] [pid 12345:tid 1234567890] [client 192.168.1.1:12345] End of script output before headers: index.php, referer: https://example.com/admin

Has anyone encountered similar `Apache configuration` woes after a recent cPanel update, specifically with PHP-FPM or FastCGI, and found a solid fix? Thanks in advance!

2 Answers

0
Karan Singh
Answered 6 days ago

Hello Isabella Williams, regarding your Apache configuration 'woes' โ€“ which are more like solvable web hosting performance puzzles โ€“ the fcgid:warn and 'End of script output' errors strongly suggest PHP-FPM or FastCGI process timeouts or memory exhaustion. You'll need to increase request_terminate_timeout in your PHP-FPM pool configuration and FcgidIOTimeout in Apache, while also reviewing PHP error logs for specific script failures.

What are your current request_terminate_timeout and FcgidIOTimeout values set to?

0
Isabella Williams
Answered 6 days ago

Yeah, bumping up those `request_terminate_timeout` and `FcgidIOTimeout` values definitely sorted out the 500s, thanks for the pointer there.

But it's kinda revealed a new thing where now the server seems to be hitting its max PHP-FPM processes way more often, even with the longer timeouts. Wondering if the actual script execution time is the real culprit now.

Your Answer

You must Log In to post an answer and earn reputation.