Webmail shows 503 Service Temporarily Unavailable: (13)Permission denied: mod_fcgid: couldn't bind unix domain socket

Created:

2016-12-29 17:52:57 UTC

Modified:

2017-08-10 03:34:03 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Webmail shows 503 Service Temporarily Unavailable: (13)Permission denied: mod_fcgid: couldn't bind unix domain socket

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  • Webmail shows 503 error:
    Service Temporarily Unavailable  The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Apache Server at webmail.testdomain.com Port 80
  • In Apache log file /var/log/apache2/error.log can be found next entries:
    [error] (13)Permission denied: mod_fcgid: couldn't bind unix domain socket /var/lib/apache2/fcgid/sock/11378.1983
    [warn] (13)Permission denied: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
    Permissions for files /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error and /var/lib/apache2/fcgid/sock/11378.1983 are standard
    # ls -la /var/lib/apache2/fcgid/
    total 28
    drwxr-xr-x 3 www-data www-data 4096 Dec. 29 15:07 .
    drwxr-xr-x 3 root root 4096 Dec. 12 2015 ..
    -rw-r--r-- 1 root root 8 Dec. 29 15:07 shm
    drwxr-xr-x 2 www-data www-data 16384 Dec. 29 12:29 sock
    # ls -la /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
    -rwxr-xr-x 1 root root 19312 Dec 19 2015 /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

Cause

Value of the APACHE_RUN_USER in file /etc/apache2/envvars and owner of /var/lib/apache2/fcgid/sock are different.

Resolution

Change values of APACHE_RUN_USER and APACHE_RUN_GROUP to the correct one in file /etc/apache2/envvars

By default, APACHE_RUN_USER and APACHE_RUN_GROUP are equal to www-data.

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