Directory Index Problem

latheesan

Verified User
Joined
Nov 27, 2005
Messages
33
Hello,

I just bought a new box from a new host and they provided DirectAdmin as the CP.

I noticed this wierd problem on my box. Basically, directory index (i.e. index.php) is not getting loaded at all.

For e.g., i have a forum like this :

http://my-domain.com/forums

When i visit that, i get the following error :

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

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

However, if i visit the forums like this :

http://my-domain.com/forums/index.php

It works perfectly fine. I noticed the same with phpMyAdmin, take a look at this screenshot :

http://img76.imageshack.us/img76/8282/89610784ze2.jpg

See what i mean? How can i fix this? I'm running the latest DirectAdmin control panel on CentOS Latest Stable OS.
 
anyone...?

Edit :: I temporarily fixed it by adding a ".htaccess" in my "forums" folder with the following code :

DirectoryIndex index.php

But this is just a temp fix, i cant go around dropping this .htaccess file in my entire site folder structure ... can someone advice please?
 
Last edited:
it is:

<IfModule dir_module>
DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi
</IfModule>

looks normal to me.........
 
i think i added a temoraly fix to this now... better than the first one.

i edited .htaccess in my directory before the public_html dir and added:

DirectoryIndex index.html index.html.var index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi

now my php page loads fine. But still... i want to know the real fix for this.
 
Try to remove "<IfModule dir_module>" and "</IfModule>", and leave just DirectoryIndex string in httpd.conf
 
Try to remove "<IfModule dir_module>" and "</IfModule>", and leave just DirectoryIndex string in httpd.conf

I have the same problem after newly install with custombuild
and this solved the problem on my box.

Thanks
 
Back
Top