Squirrelmail apache forbidden page

1.9k Views Asked by At

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

There are 2 best solutions below

0
Pawan Patil On BEST ANSWER

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

0
AnasSafi On

You must check the log of Apache to solve the problem, in centos 7 the logs will be in tow pathes:

/var/log/httpd/error_log

Or

/var/log/httpd/ssl_error_log

In generally Apache vhost.conf file must contain this lines:

Alias /webmail /usr/share/squirrelmail

<Directory "/usr/share/squirrelmail">
    Options Indexes MultiViews
    Require all granted
    AllowOverride none
    Order allow,deny
    Allow from all
    Options +SymLinksIfOwnerMatch
    DirectoryIndex index.php index.html index.htm
</Directory>