Jump to content

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


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

 

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.