Symptoms
- Sites are unavailable with the following error:
HTTP Error 500.0 - Internal Server Error
C:Program Files (x86)PleskAdditionalPleskPHP5php-cgi.exe - The FastCGI process exited unexpectedlyOR
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "". - There are the following records in Event Viewer:
Faulting application name: php-cgi.exe, version: 5.2.17.17, time stamp: 0x4d25fc25
Faulting module name: ntdll.dll, version: 6.3.9600.16502, time stamp: 0x52c35a76
Exception code: 0xc0000005
Fault offset: 0x0003e81a
Faulting process id: 0x1600
Faulting application start time: 0x01d48bcc7022bf0b
Faulting application path: C:Program Files (x86)PleskAdditionalPleskPHP5php-cgi.exe
Faulting module path: C:WindowsSYSTEM32ntdll.dll
Report Id: aea379ca-f7bf-11e8-80c7-005056968a4f
Faulting package full name:
Faulting package-relative application ID: - The website is located under a virtual directory which has PHP version different from the one set for the main domain (i.e. example.com has PHP 5.6 and example.com/dir/ has php 5.2)
Cause
Not clear
Resolution
- Change PHP version for virtual directory at Domains > example.com > Virtual Directories > {virtual_directory} > PHP Settings.