Website shows 500 error: cannot stat program: (cgi_wrapper)

Created:

2017-02-23 17:28:05 UTC

Modified:

2017-08-16 15:43:22 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Website shows 500 error: cannot stat program: (cgi_wrapper)

Applicable to:

  • Plesk Onyx for Linux

Symptoms

Website shows 500 error. The following error can be found in /var/www/vhosts/example.com/logs/error_log file:

[Thu May 18 11:32:44.214012 2017] [fcgid:warn] [pid 1835:tid 140217639999232] (104)Connection reset by peer: [client 203.0.113.2:56084] mod_fcgid: error reading data from FastCGI server
[Thu May 18 11:32:44.214049 2017] [core:error] [pid 1835:tid 140217639999232] [client 203.0.113.2:56084] End of script output before headers: index.php

The following errors can be found in /var/log/httpd/suexec_log file:

[2017-02-24 04:09:08]: uid: (10090/icsports) gid: (504/504) cmd: cgi_wrapper 
[2017-02-24 04:09:08]: cannot stat program: (cgi_wrapper)

Cause

Check that /var/www/cgi-bin/cgi_wrapper/cgi_wrapper file was not replaced, not the link and exists.

Resolution

Restore /var/www/cgi-bin/cgi_wrapper/cgi_wrapper file from normally operating Plesk server.

Have more questions? Submit a request
Please sign in to leave a comment.