By trying to get adminer running under archlinux, I got into this problem.
When setting up apache for adminer and calling localhost/adminer either with firefox or opera, I receive code 403 (access forbidden). When starting adminer without apache via:
php -S localhost:8000 -t /usr/share/webapps/adminer/
calling localhost/adminer with firefox works. All folders in the path to the index.php file have read and execute permissions. There is only one single file with read permission "index.php" present. The same accounts for my ServerRoot "/srv/http/" except that there is not a single file in there.
There must be a mistake in my apache config files.
The relevant parts of my apache config files are:
ServerRoot "/etc/httpd" Listen 80 ... User http Group http ServerAdmin [email protected] ServerName localhost:80 <Directory /> AllowOverride none Require all denied </Directory> DocumentRoot "/srv/http" <Directory "/srv/http"> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> ... Include conf/extra/httpd-adminer.conf ...
# vim: ft=apache Alias /adminer "/usr/share/webapps/adminer" <Directory "/usr/share/webapps/adminer"> AllowOverride All Options FollowSymlinks Require all granted </Directory>
I tryed to use a symlink without the Alias-line in "http-adminer.conf" without success. Yes, I made sure to restart the apache sever. (And the server is running, otherwise the code would 404 and not 403.)
What am I doing wrong?