You are not logged in.
Hello. I installed apache by
sudo pacman -S apache
I want to have my Websites synchronized in Dropbox so I want to move the default DocumentRoot to
/home/user/Dropbox/Web/
To do this I followed This official tutorial to change the directory where I'll put the websites.
Technically what I did is:
1- Change "Require all denied" to "Require all granted" in <Directory /> (line 234):
<Directory />
AllowOverride none
Require all granted
</Directory>
2- Change "/srv/http" to "/home/user/Drobox/Web" (lines 249 and 250)
DocumentRoot "/home/user/Dropbox/Web"
<Directory "/home/user/Dropbox/Web">
3- Change the permissions of /home/user/Dropbox/Web:
I tried with the ones that reads in the tutorial but it didn't work. So also I tried with
sudo chmod 755 -R /home/user/Dropbox/Web/
and
sudo chmod 755 -R /home/user/Dropbox/Web/
Finally this is the last part of /var/log/httpd/error_log:
3)Permission denied: [client 127.0.0.1:45980] AH00035: access to / denied (filesystem path '/home/user/Dropbox') because search permissions are missing on a component of the path
Thanks.
Last edited by bastri (2016-01-23 15:43:24)
Offline
Apache needs execution rights on all directories in the path, chmod -R only change the permissions for the specified directory and the directory's content.
You need to set execution permission on the parent and grandparent directories, check the current permissions first.
The change you made on line: 234 was not necessary, I'd advise reverting it back to:
<Directory />
AllowOverride none
Require all denied
</Directory>
as the wiki you referenced, most likely referred to the "Require all granted" which is in the
<Directory "/path/to/DocumentRoot">
...
Require all granted
</Directory>
block.
Offline