Jump to content

Forbidden...You don't have permission to access / on this server.


anujgarg

Recommended Posts

Hi Everyone,

 

Previously, I was using the following versions for my working setup:

Apache 2.0.63

PHP 5.1.3

 

But now I have upgraded these two by following:

Apache 2.2.11 (with openssl enabled)

PHP 5.2.9

 

The problem that I am facing is "Forbidden...You don't have permission to access / on this server."

This error message comes all the time when I open the http://localhost on the web browser. And also at the time when I open the direct path to my DocumentRoot that has been set to D:/web.

 

I have four directories under D:/web. The directory names are as follows for D:/web:

secure

mml

mm

share

 

I have changed the file httpd.conf accordingly (after googling a lot) but nothing happened. I am also looking for the ssl to be enabled in my Apache. For that I have used openssl and generated the key.

 

Please suggest me how to get rid of the error message: "Forbidden...You don't have permission to access / on this server."

Also, to configure the ssl in Apache 2.2.11

 

TIA

 

Anuj

 

I found following on the site of Apache itself:

 

Search your conf/httpd.conf file for this exact string: <Files ~>. If you find it, that's your problem -- that particular <Files>  container is malformed. Delete it or replace it with <Files ~ "^\.ht"> and restart your server and things should work as expected.

 

I applied same in my httpd.conf but it did not work

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.