Applicable to:
- Plesk for Linux
Symptoms
-
Webmail:
Click here to expand-
Roundcube/Horde webmail shows the following error message in a web browser:
CONFIG_TEXT: 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.example.com Port 80
CONFIG_TEXT: 500 Internal Server Error
-
The following messages appear in
/var/log/psa-horde/psa-horde.log
or/var/log/apache2/error.log
:CONFIG_TEXT: [warn] [client 203.0.113.2] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[error] [client 203.0.113.2] Premature end of script headers: index.php -
The following error messages may appear in
/var/log/httpd/suexec_log
:CONFIG_TEXT: 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)
CONFIG_TEXT: uid: (996/roundcube_sysuser) gid: (1006/1006) cmd: cgi_wrapper
file has no execute permission: (/var/www/cgi-bin/cgi_wrapper/cgi_wrapper)
-
-
Websites on FastCGI:
Click here to expand-
Websites served by the PHP FastCGI handler are not loading with a 500 error. After changing a PHP handler to PHP-FPM, websites start to work.
-
CGI scripts do not work on a website.
- Following error messages in
/var/www/vhosts/system/example.com/logs/error_log
:CONFIG_TEXT: [warn] [client 203.0.113.2] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[error] [client 203.0.113.2] Premature end of script headers: index.php
-
-
Plesk migration:
Click here to expand-
The following warning appears during a Plesk migration:
PLESK_WARN: WARNING:()The webmail service horde is unavailable. It will be replaced with <webmail> for the following objects: <list of domains>
-
Cause
Permissions on the file /var/www/cgi-bin/cgi_wrapper
are incorrect.
Resolution
-
Connect to the server via SSH
-
Correct the permissions:
# chown root:root /var/www
# chmod 0755 /var/www
# chown -R root:root /var/www/cgi-bin
# chmod 0755 /var/www/cgi-bin
# chmod -R 0755 /var/www/cgi-bin/cgi_wrapper
Comments
9 comments
Dear sir.
I do all of this but my roundcube webmail continue with error 500.
log :
[Tue Feb 19 12:07:50.761225 2019] [fcgid:warn] [pid 23206:tid 140419207698176] (104)Connection reset by peer: [client xxx.xxx.xxx.xxx:35742] mod_fcgid: error reading data from FastCGI server
[Tue Feb 19 12:07:50.761272 2019] [core:error] [pid 23206:tid 140419207698176] [client xxx.xxx.xxx.xxx:35742] End of script output before headers: index.php
Can you help me ?
Hello @Apsides Communication,
Alternatively, it might be caused by insufficient permissions for the /etc/passwd. Permissions should be set as in the example below:
# ls -la /etc/passwd
-rw-r--r-- 1 root root 3100 Feb 5 14:58 /etc/passwd
If permissions differ, change it with the following command:
# chmod 644 /etc/passwd
If the error remains, contact support for the help: How to submit a request to Plesk support?
Thanks for reply but issue is same.
thanks it worked for me!
This problem arose after I decided to remove outdated php versions. 7.2 and 5 from os vendor.
Re-installing them solved the issue.
Edit:
Roundcube uses PHP 7.2, so don't remove it, even if you don't use it.
Since Updating to Plesk Version 18.0.46 Update #2 i get this error in Horde Webmail but permissions on cgi-wrapper are fine.
Edit: Solved by reinstalling PHP7.4 and Horde without losing data
Hello,
@Sebastian Nicol
Glad that worked for you. However I would recommend backing up the horde database during re-install(# plesk db dump horde > ~/horde.sql) as it might contain the user-specific adjustments like contact lists & etc.
@Stefan: I did indeed a backup of horde database, but reinstalling did not delete any horde-related databases. We still have all of our contacts/calendar etc. available.
Please sign in to leave a comment.