Click to See Complete Forum and Search --> : Simple Apache conf problem


RicoDev
11-27-2001, 09:08 PM
Hi there!

Why can't my web site be accessible if I name my main file "index.php"? I get this error message :

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

If I name my file Index.html, everything work's fine. I've looked in the apache doc and tried what it was suggested : remove the string :

<Files ~ "\.(cgi|shtml)$">

Didn't work. Same old.

I can access my php files without problems by a link and they are working fine.

There must be a string in httpd.conf that isn't configured correctly but I can't get a hand on it!

Thank's a lot for looking!

Eric,

RicoDev
11-27-2001, 10:18 PM
Here's what my error_log files gives me :

Directory index forbidden by rule: /home/eric/Public/Fabrice/

saithan
11-27-2001, 10:34 PM
your problem is most liklly to be that you made the index.php or whatever with the wrong permisions. You need to set the files permissions to allow apache to read or execute depending on the type of file.

freebsd
11-27-2001, 10:34 PM
Start here -> http://httpd.apache.org/docs/mod/mod_dir.html#directoryindex

RicoDev
11-27-2001, 11:08 PM
It doesen't seems to be a permission problem, since I've made a chown nobody
and a chmod 777 on my index.php file.
Same forbiden acces message...

Anyway if I access my index.php file (by a link that I made in index.html) my php routines works just fine...

Still searching...

RicoDev
11-27-2001, 11:17 PM
Ok, I've found it!

The string :

"DirectoryIndex index.html"

wasn't in my config file... I think
it is replace by :

"IndexOptions FancyIndexing"

Anyway I comented this line and
added :

"DirectoryIndex index.php"

Bingo!

Thank's a lot for helping guy's!
I realy appreciated it!

Eric,