Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Dec 03, 2025, 05:34 AM

Title: Roundcube/Horde webmail and websites on FastCGI are not accessible: Connection
Post by: Suhitha on Dec 03, 2025, 05:34 AM
Question: Roundcube/Horde webmail and websites on FastCGI are not accessible: Connection reset by peer: mod_fcgid: error reading data from FastCGI server


Applicable to:



Symptoms

Webmail:


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

500 Internal Server Error

[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

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)

Websites on FastCGI:


[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:

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

1.Connect to the server via SSH

2.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