- Plesk for Linux
One or several of the symptoms below may occur:
Unable to start Apache:
# systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
# systemctl status httpd.service
. . .
Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (13)Permission denied
A webmail is not accessible with the following error:
PLESK_INFO: Internal Server Error
CGI scripts do not work for a domain. Websites with PHP-FastCGI handler are not working. If change PHP handler to PHP-FPM websites work fine.
The following error may be found in
PLESK_INFO: uid: (10021/horde_sysuser) gid: (510/510) cmd: cgi_wrapper
target uid/gid (10021/510 or 504) mismatch with directory (0/503) or program (0/0)
uid: (2523/horde_sysuser) gid: (2521/2521) cmd: cgi_wrapper
directory is writable by others: (/var/www/cgi-bin/cgi_wrapper)
PLESK_INFO: uid: (996/roundcube_sysuser) gid: (1006/1006) cmd: cgi_wrapper
file has no execute permission: (/var/www/cgi-bin/cgi_wrapper/cgi_wrapper)
The following errors may be found in
PLESK_INFO: [error] [client 203.0.113.2] Directory index forbidden by Options directive: /var/www/html/, referer: http://203.0.113.2:8880/admin/domain/list?context=domains
PLESK_INFO: [fcgid:warn] [pid 9189] (104)Connection reset by peer: [client 203.0.113.2:53091] mod_fcgid: error reading data from FastCGI server[core:error] [pid 9189] [client 203.0.113.2:53091] End of script output before headers: index.php
Incorrect permissions for
/var/www/cgi-bin/cgi_wrapperdirectory or its content.
Connect to the server via SSH;
Set correct permissions as follows:
# chown -R root:root /var/www/cgi-bin/cgi_wrapper
# chmod -R 755 /var/www/cgi-bin/cgi_wrapper
Note: directory location can differ, pay attention to the path in the error.