Website shows 500 Internal Server Error: Cannot allocate memory: mod_fcgid: can't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

Created:

2016-11-16 12:55:55 UTC

Modified:

2017-04-24 11:12:15 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Website shows 500 Internal Server Error: Cannot allocate memory: mod_fcgid: can't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux

Symptoms

500 Internal Server Error appears when loading a website or web-mail in an Internet-browser.

In /var/log/httpd/error.log following messages appear:

[error] (12)Cannot allocate memory: mod_fcgid: can't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[warn] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error

Cause

cgi_wrapper file is corrupted (wrong size):

# ls -l /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
-rwxr-xr-x 1 root root 3.0K Feb 12 16:54 /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

Resolution

Reinstall psa-php5-configurator package from Plesk repository:

# wget http://autoinstall.plesk.com/PSA_11.5.30/dist-rpm-RedHat-el6-x86_64/opt/php5/psa-php5-configurator-1.6.3-rhel6.build115130724.18.x86_64.rpm
# rpm -Uvh --nodeps psa-php5-configurator-1.6.3-rhel6.build115130724.18.x86_64.rpm --force
Preparing... ########################################### [100%]
1:psa-php5-configurator ########################################### [100%]

# service httpd reload
Reloading httpd:

Please be advised that in this particular example RedHat package is being reinstalled. In case of another operating system (CloudLinux for example) package should be taken from according repo .

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