• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Issue 500 Internal Server Error for one of my websites

nicksti

New Pleskian
Hy, i search for a soulution since days.

My server runs with Ubuntu 18.04.4 and apache.

one of my sites which are written with CakePhp throws a 500 Internal Server error with less log entries.
When I call the index.php on command line with php index.php, I get the regular HTML-Code.

log entries from /var/log/apache2.error.log

Premature end of script headers: index.php
Error parsing script headers
AH01075: Error dispatching request to :

log entries from /var/www/vhosts/my-site.com/logs/access_ssl_log
[20/Sep/2020:08:37:36 +0200] "GET / HTTP/1.1" 500 3542 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36"

When I use FastCgi de Plesk-Predefined ErrorDoc is shown.
WhenI use FPM just a blank side is shown.

I have no idea
 
this is all what i can find.

Premature end of script headers: index.php
[Tue Sep 22 08:12:10.814109 2020] [proxy_fcgi:error] [pid 29358:tid 139985030199040] [client 11.11.111.140:61963] AH01070: Error parsing script headers
[Tue Sep 22 08:12:10.814114 2020] [proxy_fcgi:error] [pid 29358:tid 139985030199040] (22)Invalid argument: [client 50.21.190.140:61963] AH01075: Error dispatching request to :
 
@nicksti
Code:
Premature end of script headers: index.php
Error parsing script headers
AH01075: Error dispatching request to :
The script contains an error that it never finishes. It can be a bracket issues (missing closing brackets in some places) or a simply php opener/closer issue or a while...next loop that never reaches its exit condition. Also very common are "includes" that point to a non-existent file or even better an URL that does not delivered the required resource.

@sergiomb
How is that related to the initial question?
 
Sorry I though I read error "End of script output before headers" when is "Premature end of script headers: index.php"
 
Back
Top