Trying to access Webmail on Horde we are getting:

    Internal Server Error

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


    Please contact the server administrator, <administrator@domain.tld and inform them of the time the error occurred, and anything you might have done that may have caused the error.

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

In Apache log /var/log/httpd/error_log file there is:

    PHP Fatal error:  Directive 'magic_quotes_gpc' is no longer available in PHP in Unknown on line 0
    [<date>] [warn] [client <client_ip>] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
    [<date>] [error] [client <client_ip>] Premature end of script headers: login.php

Resolution

  1. Go to /etc/psa-webmail/horde/horde/php.ini and comment the following line:
    magic_quotes_gpc = On
    
  2. Restart httpd service:
    /etc/init.d/httpd stop
    /etc/init.d/httpd start
    
  3. Also please make sure that permissions for cgi_wrapper are correct:
    root@www:~# ls -la /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
    -rwxr-xr-x 1 root root 18688 Jul 24  2013 /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
    

Cause

magic_quotes_gpc directive is no longer supported in PHP5.4

Leave a Reply

Your email address will not be published. Required fields are marked *