I got "Access forbidden!"

Problems with the Linux version of XAMPP, questions, comments, and anything related.

I got "Access forbidden!"

Postby hanpedro » 11. November 2015 15:47

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.
hanpedro
 
Posts: 133
Joined: 09. February 2005 06:03
Operating System: SCientific Linux 6.1 x86

Re: I got "Access forbidden!"

Postby agnemedia » 22. December 2015 03:30

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>
agnemedia
 
Posts: 5
Joined: 21. December 2015 22:31
Operating System: Mac

Re: I got "Access forbidden!"

Postby Altrea » 22. December 2015 13:10

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8294
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 3 guests