Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forbidden Error after PHP5 install

Status
Not open for further replies.

imm102

Technical User
Oct 7, 2004
6
CH
I had apache working fine for a few days. I changed my document root to Mydocuments/WebDocs/ had no problems. I installed php5 and all of a sudden i can't view any files at all. I get the

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

Nothing seems to have changed in the httpd.conf except:

LoadModule php5_module "D:/php/php5apache2.dll"
AddType application/x-httpd-php .php

PHPIniDir "D:/php"

Which is all correct according to php.net. Ive tried viewing the root using my external IP
Non work. Even if i comment out the above code it fails to work.

This is the error from the error log
[Thu Oct 07 19:57:44 2004] [error] [client 127.0.0.1] Directory index forbidden by rule: C:/My Documents/WebDocs/

Can anyone help cos im out of idea!
 
imm102,

The error message indicates that there is a permissions issue with C:/My Documents/WebDocs/

Is that where your DocumentRoot points?

Wishdiak
 
This is the error from the error log
[Thu Oct 07 19:57:44 2004] [error] [client 127.0.0.1] Directory index forbidden by rule: C:/My Documents/WebDocs/

In your httpd.conf, look for the DirectoryIndex directive and add to the list the document that you wish to be called directly when a visitor does not specify a specific file.

For example, you might currently have:

DirectoryIndex index.html index.htm

Add index.php to the end of that list and make sure there is a file named index.php in the root direcory.

Hope this helps

Wullie

Fresh Look - Quality Coldfusion Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top