Cannot access http://localhost/index.php

Hello everybody!

I have a problem with access to my index.php page.

If I put an index.html page into my localhost folder and call it from browser, it works fine. But when I put an index.php page into my localhost folder and call it from browser, I’m getting next error:

You are not authorized to view this page
HTTP Error 403 - Forbidden

I cannot find out what caused this problem. Anyone can help?

Tnx in advance!

Hi,

Tnx a lot, it is better now, but there is still a small problem.

When I call http://localhost/index.php, I’m getting my php page correctly.
But when I call http://localhost, I’m just getting the content of my localhost folder including a link to index.php. As I know, I should get index.whatever page as a default page by calling http://localhost, right?

I suppose it is different problem now… ???

Regards,

Add index.php to the DirectoryIndex directive in Apaches httpd.conf

This is an experiment - Just testing something with localhost/index.php

I am starting to get confused!!!

No reason to be confused, eveyone needs a little localhost/index.php in their lives.

Sponsor our Newsletter | Privacy Policy | Terms of Service