Webmail shows Service Temporarily Unavailable: (13)Permission denied: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error

Created:

2016-11-16 13:07:04 UTC

Modified:

2017-04-24 11:18:32 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Webmail shows Service Temporarily Unavailable: (13)Permission denied: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error

Applicable to:

  • Plesk Onyx for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Webmail is not working:

Service Temporarily Unavailable

The following error can be found in /var/log/httpd/error_log :

[Fri Aug 22 18:34:14 2014] [warn] (13)Permission denied: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
[Fri Aug 22 18:34:15 2014] [error] (13)Permission denied: mod_fcgid: couldn't bind unix domain socket /etc/httpd/logs/fcgidsock/84966.63
[Fri Aug 22 18:34:15 2014] [warn] (13)Permission denied: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
[Fri Aug 22 18:34:15 2014] [warn] [client 203.0.113.2] mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

FastCGI configuration file is missing under the path /etc/httpd/conf.d/

# rpm -qf /etc/httpd/conf.d/fcgid.conf
mod_fcgid-2.3.9-1.el5.cloudlinux

# ls -l /etc/httpd/conf.d/fcgid.conf
ls: /etc/httpd/conf.d/fcgid.conf: No such file or directory

Cause

FastCGI misconfiguration.

Resolution

  1. Create /etc/httpd/conf.d/fcgid.conf with the following content:

    LoadModule fcgid_module modules/mod_fcgid.so

    <IfModule mod_fcgid.c>

    <IfModule !mod_fastcgi.c>
    AddHandler fcgid-script fcg fcgi fpl
    </IfModule>

    FcgidIPCDir /var/run/mod_fcgid/sock
    FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm

    FcgidIdleTimeout 40
    FcgidProcessLifeTime 30
    FcgidMaxProcesses 20
    FcgidMaxProcessesPerClass 8
    FcgidMinProcessesPerClass 0
    FcgidConnectTimeout 30
    FcgidIOTimeout 45
    FcgidInitialEnv RAILS_ENV production
    FcgidIdleScanInterval 10

    </IfModule>
  2. Reload Apache configuration:

    # /etc/init.d/httpd reload
Have more questions? Submit a request
Please sign in to leave a comment.