Search code examples
phpapachesquirrelmail

Squirrelmail apache forbidden page


I am using PHP 7.0.5 and Apache 2.4.20 and I would like to run Squirrelmail.

I am getting a 403 Forbidden error when I try to access any of the squirrelmail pages like HostName/squirrelmail, HostName/squirrelmail/src/login.php or HostName/squirrelmail/src/configtest.php ect.

In my httpd.conf I have:

 Alias /squirrelmail /usr/local/squirrelmail/www
<Directory /usr/local/squirrelmail/www>
  Options None
  AllowOverride None
  DirectoryIndex index.php
  Order Allow,Deny
  Allow from all
</Directory>

Solution

  • This is due to httpd 2.4 access control has changed from the previous version the solution is as follows

    Order allow,deny Allow from all

    should be replaced by:

    Require all granted

    then restart httpd

    systemctl restart httpd