Page 1 of 1

I got "Access forbidden!"

PostPosted: 11. November 2015 15:47
by hanpedro
My box is centos 7.1 x64 and installed latest xampp. After installing xampp and I browse my test url, but I got this error message.

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
test.com
Apache/2.4.17 (Unix) OpenSSL/1.0.1p PHP/5.6.14 mod_perl/2.0.8-dev Perl/v5.16.3



I add "/var/www/html" for my sites, and I guesss some permissions of this directory have problem.

[root@localhost lampp]# ls -al /var/www
total 8
drwxr-xr-x. 3 root root 17 Nov 7 07:41 .
drwxr-xr-x. 23 root root 4096 Nov 10 23:42 ..
drwxr-xr-x. 26 root root 4096 Nov 10 23:46 html


Any helpful comments are appreciated.
Thanks in advance.

Re: I got "Access forbidden!"

PostPosted: 22. December 2015 03:30
by agnemedia
Try this
I have solve the problem with this edit (work well with virtual host on external drive to)

in file "httpd.conf",there has another default Directory configuation like follow:

<Directory />
AllowOverride none
Require all denied
</Directory>
you can delete this directory or change is as follow:

<Directory />
AllowOverride all
Require all granted
</Directory>

Re: I got "Access forbidden!"

PostPosted: 22. December 2015 13:10
by Altrea
That is really really bad, don't try this.
Search the Directory section of this specific virtual host.
If there is none you need to create one.