Access forbidden!

Irgendwelche Probleme mit XAMPP für Linux? Dann ist hier genau der richtige Ort um nachzufragen.

Access forbidden!

Postby shimi » 06. September 2013 09:21

Hey all, I'm new to linux - and I want to keep on using linux but I need to make sure xampp wil work.

I install xammp and when I'm getting to: localhost on my browser I'm getting the error: Access forbidden!
I follow all the avilabale guides, tried everything but nothing worked.

Please advise! I'm really losing my mind here, spent 2 days to solve this issue.


Thanks in Advance
shimi
 
Posts: 1
Joined: 06. September 2013 09:19
Operating System: Fedora 19

Re: Access forbidden!

Postby peon » 08. January 2014 16:47

Hey,

open your file: "httpd.conf" (located in /opt/lampp/etc/httpd.conf) as super-user
search for:

<Directory />
AllowOverride none
Require all denied
</Directory>

uncomment "Require all denied" with a # like this

<Directory />
AllowOverride none
#Require all denied
</Directory>

is it working now?
peon
 
Posts: 2
Joined: 08. January 2014 16:28
Operating System: Ubuntu

Re: Access forbidden!

Postby Altrea » 08. January 2014 21:25

peon wrote:open your file: "httpd.conf" (located in /opt/lampp/etc/httpd.conf) as super-user
search for:

<Directory />
AllowOverride none
Require all denied
</Directory>

uncomment "Require all denied" with a # like this

<Directory />
AllowOverride none
#Require all denied
</Directory>

is it working now?

That is not only bullshit, that is a security hole.
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Access forbidden!

Postby peon » 09. January 2014 14:45

Altrea wrote:That is not only bullshit, that is a security hole.


You might be right and maybe you can give a solution that is more accurate and fits the problem in a save way.

I'm using xampp as test server and recently got the same problem. Xampp calls itself
"The default configuration is not good from a security point of view and it's not secure enough for a production environment - please don't use XAMPP in such environment."
so why is my solution a bad idea?
peon
 
Posts: 2
Joined: 08. January 2014 16:28
Operating System: Ubuntu

Re: Access forbidden!

Postby Altrea » 09. January 2014 16:38

The default behavior of Apache is "all access is forbidden except it is permitted by a rule"
You have changed this to "all access is implicitly allowed because it is not defined".

If now you or someone else would define a ressource outside of the apache DocumentRoot (e.g. by accident) apache would transfer any file inside that Ressource by request.
Now your environment is not even safe enough as test or development server.
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Access forbidden!

Postby Nobbie » 09. January 2014 20:56

peon wrote:so why is my solution a bad idea?


It's not a bad idea. I agree to you. If you are single User of Xampp (and as well single user of your PC) in a development environment, there is no rights problem and no need for any restrictions.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 5 guests