Plesk shows 500 Internal Server Error: [ERROR]: spawning fcgi failed

Created:

2016-11-16 12:54:14 UTC

Modified:

2017-04-24 11:14:43 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk shows 500 Internal Server Error: [ERROR]: spawning fcgi failed

Applicable to:

  • Plesk 11.0 for Linux
  • Plesk 12.0 for Linux
  • Plesk 10.x and below for Linux

Symptoms

Plesk login page shows the 500 Internal Server Error

The following errors can be found in /var/log/sw-cp-server/error.log :

2014-04-03 11:20:43: (mod_fastcgi.c.1068) the fastcgi-backend /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm failed to start:
2014-04-03 11:20:43: (mod_fastcgi.c.1072) child exited with status 1 /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
2014-04-03 11:20:43: (mod_fastcgi.c.1075) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.
If this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2014-04-03 11:20:43: (mod_fastcgi.c.1171) [ERROR]: spawning fcgi failed.
2014-04-03 11:20:43: (mod_fastcgi.c.3644) all handlers for /index.php? on .php are down.

Cause

The wrong permissions and owner were set for the /tmp directory and suexec binaries.

Resolution

In order to fix the issue set valid permissions for /tmp , /usr/sbin/suexec and /usr/lib64/sw-cp-server/sw-suexec :

# chown root:root /tmp
# chmod 1777 /tmp

# chown root:apache /usr/sbin/suexec
# chmod 4510 /usr/sbin/suexec

# chown root:sw-cp-server /usr/lib64/sw-cp-server/sw-suexec
# chmod 4710 /usr/lib64/sw-cp-server/sw-suexec

And restart sw-cp-server then:

# /etc/init.d/sw-cp-server restart
Have more questions? Submit a request
Please sign in to leave a comment.