You are not logged in.
hello .
acording this website :
(step5)
http://www.tecmint.com/install-lamp-in-arch-linux/
i did config my system webserver to use sites-available and sites-enabled and it works fine with this config:
<VirtualHost *:80>
DocumentRoot "/srv/http"
ServerName localhost
ServerAdmin you@example.com
ErrorLog "/var/log/httpd/localhost-error_log"
TransferLog "/var/log/httpd/localhost-access_log"
<Directory />
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order deny,allow
Allow from all
Require all granted
</Directory>
</VirtualHost>
but when i change *DocumnetRoot* to my home folder like "/home/myusername/web" it say to me
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
i shoud say that :
1=*web* folder have index.php file and have 777 permission.
2= adding this line =>
<Directory "/home/mohammadreza/web/">
AllowOverride All
Options None
Require all granted
</Directory>
to/etc/httpd/conf/httpd.conf didnt help
when i return *DocumentRoot* to /srv/http/ it work fine again
any idea why this happen?
Last edited by ultra2mh (2017-04-23 12:02:18)
Offline
Does the http user have read access to your home folder?
Offline
how can i check that ?
Offline
fixed by this command ::: chmod o+x ~ :thanks
Offline