• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Plesk 18 - Horde or Roundcube Webmail - Error 500 - Internal server error

octet

Basic Pleskian
Server operating system version
CentOS Linux 7.9.2009
Plesk version and microupdate number
Plesk Obsidian v18.0.50_build1800230213.12
Hi guys,

Getting this error on any domain https://webmail.domain.tld RoundCube or Horder same issue:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Logs:
[root@hive ~]# tail -f /var/log/httpd/error_log
failed to open log file /var/log/httpd/suexec_log
fopen: Permission denied
[Tue Feb 28 14:15:58.308452 2023] [fcgid:warn] [pid 49075:tid 140636817319680] (104)Connection reset by peer: [client IP:43350] mod_fcgid: error reading data from FastCGI server
[Tue Feb 28 14:15:58.308505 2023] [core:error] [pid 49075:tid 140636817319680] [client IP:43350] End of script output before headers: index.php

Permissions:
[root@hive plesk-roundcube]# ll /var/log/httpd/suexec_log
-rwxr-xr-x 1 root apache 0 Feb 26 03:51 /var/log/httpd/suexec_log

Tried this, issue remains.

https://support.plesk.com/hc/en-us/articles/213958785-Roundcube-Horde-webmail-and-websites-on-FastCGI-are-not-accessible-Connection-reset-by-peer-mod-fcgid-error-reading-data-from-FastCGI-server
 
Hi,
Check if you have modsecurity enabled, disable it temporary and try to access a webmail
 
Try this:
Code:
chown apache:apache  /var/log/httpd/suexec_log
Also, check permissions for suexec binary
Code:
stat /usr/sbin/suexec
chmod 4510 /usr/sbin/suexec

If you purchased Plesk license directly from Plesk consider to contact support to speed up the issue resolution
 
[root@hive ~]# stat /usr/sbin/suexec
File: ‘/usr/sbin/suexec’
Size: 39392 Blocks: 80 IO Block: 4096 regular file
Device: 902h/2306d Inode: 604931831 Links: 1
Access: (0510/-r-x--x---) Uid: ( 0/ root) Gid: ( 48/ apache)
Access: 2023-02-28 21:08:00.911388971 +0000
Modify: 2023-02-20 04:11:54.951000057 +0000
Change: 2023-02-25 12:08:54.692501939 +0000
Birth: -
[root@hive ~]# ll /var/log/httpd/suexec_log
-rw-r--r-- 1 root root 0 Feb 28 13:41 /var/log/httpd/suexec_log
[root@hive ~]# chown apache:apache /var/log/httpd/suexec_log
[root@hive ~]# ll /var/log/httpd/suexec_log
-rw-r--r-- 1 apache apache 0 Feb 28 13:41 /var/log/httpd/suexec_log
[root@hive ~]# stat /usr/sbin/suexec
File: ‘/usr/sbin/suexec’
Size: 39392 Blocks: 80 IO Block: 4096 regular file
Device: 902h/2306d Inode: 604931831 Links: 1
Access: (0510/-r-x--x---) Uid: ( 0/ root) Gid: ( 48/ apache)
Access: 2023-02-28 21:08:00.911388971 +0000
Modify: 2023-02-20 04:11:54.951000057 +0000
Change: 2023-02-25 12:08:54.692501939 +0000
Birth: -
[root@hive ~]# chmod 4510 /usr/sbin/suexec
[root@hive ~]# stat /usr/sbin/suexec
File: ‘/usr/sbin/suexec’
Size: 39392 Blocks: 80 IO Block: 4096 regular file
Device: 902h/2306d Inode: 604931831 Links: 1
Access: (4510/-r-s--x---) Uid: ( 0/ root) Gid: ( 48/ apache)
Access: 2023-02-28 21:08:00.911388971 +0000
Modify: 2023-02-20 04:11:54.951000057 +0000
Change: 2023-03-01 17:03:22.245939526 +0000
Birth: -
[root@hive ~]#

The error shown now on webmail page is:

A fatal error has occurred

During inheritance of ArrayAccess: Uncaught ArgumentCountError: Too few arguments to function Horde_ErrorHandler::errorHandler(), 4 passed in /usr/share/psa-pear/pear/php/Horde/Registry/Hordeconfig.php on line 24 and exactly 5 expected in /usr/share/psa-pear/pear/php/Horde/ErrorHandler.php:153 Stack trace: #0 /usr/share/psa-pear/pear/php/Horde/Registry/Hordeconfig.php(24): Horde_ErrorHandler::errorHandler() #1 /usr/share/psa-pear/pear/php/Horde/Autoloader.php(128): include('/usr/share/psa-...') #2 /usr/share/psa-pear/pear/php/Horde/Autoloader.php(65): Horde_Autoloader->_include() #3 /usr/share/psa-pear/pear/php/Horde/Registry.php(1763): Horde_Autoloader->loadClass() #4 /usr/share/psa-pear/pear/php/Horde/Registry.php(480): Horde_Registry->importConfig() #5 /usr/share/psa-pear/pear/php/Horde/Registry.php(287): Horde_Registry->__construct() #6 /usr/share/psa-horde/index.php(17): Horde_Registry::appInit() #7 {main}

Details have been logged for the administrator.
 
Try to switch to RoundCube, re-install webmail applications using Plesk Installer
 
Done, but it doesn't appear to change it - How to change PHP version for webmail in Plesk for Linux?

Code:
root@hive ~]# cat /usr/local/psa/admin/conf/templates/custom/webmail/roundcube.php | grep FcgidInitialEnv
            FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX plesk-php80-fastcgi 
            FcgidInitialEnv PP_CUSTOM_PHP_INI "<?php echo $roundcubePhpIni; ?>"
[root@hive ~]# cat /usr/local/psa/admin/conf/templates/custom/webmail/horde.php | grep FcgidInitialEnv
        FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX plesk-php80-fastcgi 
        FcgidInitialEnv PP_CUSTOM_PHP_INI "<?php echo $hordePhpIni; ?>"
[root@hive ~]# plesk bin php_handler --list | grep fastcgi
        plesk-php70-fastcgi         7.0.33         7.0.33       7.0  fastcgi   /opt/plesk/php/7.0/bin/php-cgi  /opt/plesk/php/7.0/bin/php  /opt/plesk/php/7.0/etc/php.ini     true  enabled
        plesk-php71-fastcgi         7.1.33         7.1.33       7.1  fastcgi   /opt/plesk/php/7.1/bin/php-cgi  /opt/plesk/php/7.1/bin/php  /opt/plesk/php/7.1/etc/php.ini     true  enabled
        plesk-php72-fastcgi         7.2.34         7.2.34       7.2  fastcgi   /opt/plesk/php/7.2/bin/php-cgi  /opt/plesk/php/7.2/bin/php  /opt/plesk/php/7.2/etc/php.ini     true  enabled
        plesk-php73-fastcgi         7.3.33         7.3.33       7.3  fastcgi   /opt/plesk/php/7.3/bin/php-cgi  /opt/plesk/php/7.3/bin/php  /opt/plesk/php/7.3/etc/php.ini     true  enabled
        plesk-php74-fastcgi         7.4.33         7.4.33       7.4  fastcgi   /opt/plesk/php/7.4/bin/php-cgi  /opt/plesk/php/7.4/bin/php  /opt/plesk/php/7.4/etc/php.ini     true  enabled
        plesk-php80-fastcgi         8.0.28         8.0.28       8.0  fastcgi   /opt/plesk/php/8.0/bin/php-cgi  /opt/plesk/php/8.0/bin/php  /opt/plesk/php/8.0/etc/php.ini     true  enabled
        plesk-php81-fastcgi         8.1.16         8.1.16       8.1  fastcgi   /opt/plesk/php/8.1/bin/php-cgi  /opt/plesk/php/8.1/bin/php  /opt/plesk/php/8.1/etc/php.ini     true  enabled
        plesk-php82-fastcgi          8.2.3          8.2.3       8.2  fastcgi   /opt/plesk/php/8.2/bin/php-cgi  /opt/plesk/php/8.2/bin/php  /opt/plesk/php/8.2/etc/php.ini     true  enabled
[root@hive ~]#

Code:
[root@hive ~]# plesk repair web -y

Checking Plesk version .............................................. [OK]

Checking Apache configuration ....................................... [OK]

Checking for custom configuration templates
  Some custom configuration templates have been found. The custom     
  templates have higher priority than default templates in case of   
  configs generation                                                 
  Please check documentation for details:                             
  https://docs.plesk.com/current/redirect.html?book=advanced-administration-guide-linux&page=68693.htm
................................................................... [WARNING]

Checking associations between domains and IP addresses .............. [OK]

Checking for corrupted reference between IP collections and   
IPaddresses ......................................................... [OK]

Checking for links between APS applications and subscriptions ....... [OK]

Checking for nginx ULIMIT value ..................................... [OK]

Checking for extra configurations in database not owned by any object
................................................................... [OK]

Checking the status of the required Apache modules .................. [OK]

Checking the configuration of Apache modules ........................ [OK]

Checking web server configuration. Please wait
    Reinstalling SSL/TLS certificates ............................... [OK]
    Applying the default SSL/TLS certificate to all IP addresses .... [OK]
    Repairing web server configuration for all domains. This aspect   
    can be used with individual domains ("plesk repair web           
    example.com"), and on the server level ("plesk repair web") ..... [OK]
    Repairing server-wide configuration parameters for web servers .. [OK]

Checking the usage of PHP handlers .................................. [OK]

Checking for obsolete PHP-FPM configuration files ................... [OK]

Error messages: 0; Warnings: 1; Errors resolved: 0

[root@hive ~]#

The error shown on the webmail page is now:

Code:
Unsupported PHP version. Required PHP >= 5.4 and < 8.0.
 
Back
Top