• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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