I installed the Apache server on Manjaro (no tag for it, Arch is the closest). It works well. I added a virtualhost and tried to set directory permissions with chmod, but no luck. I got 403 error when visiting http://localhost:8080/
Listen 8080
<VirtualHost *:8080>
DocumentRoot "/home/inf3rno/Desktop/projects/xxx/"
ServerName www.example2.org
ErrorLog "/home/inf3rno/Desktop/projects/xxx/error.log"
CustomLog "/home/inf3rno/Desktop/projects/xxx/access.log" common
<Directory "/home/inf3rno/Desktop/projects/xxx/">
Options Indexes FollowSymlinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
I tried chmod 775
and chmod +x
on the xxx directory. With namei --long
I got drwxrwxr-x inf3rno inf3rno xxx
. According to the error.log search permissions are missing. Logging is ok to the files. I found many similar questions for different distros, but none of the answers fixed it. I have both index.php and index.html files in the directory, but none of them is served. For namei --long
I got -rwxr-xr-x inf3rno inf3rno index.php
for the files. Any idea how to fix this?