- Plesk for Linux
A webmail is not accessible and the following error is shown:
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 can be found in
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)
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 can be found in
[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
[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_wrapper directory or its content.
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.