Click to See Complete Forum and Search --> : brower doesn't direct to index.php


mayooresan
10-09-2008, 08:06 AM
I have configured Apache, php, MySQL in my local machine.
Later I installed phpbb3 in a folder "forum"

When I point the browser to http://localhost/forum , the browser shows directory listing instead of showing http://localhost/forum/index.php

when I installed wordpress, the same issue occuring... can any one got any explanation for it.

Can anyone help me to resolve it??

Thanks in advance

Fang
10-09-2008, 09:10 AM
DirectoryIndex directive (http://httpd.apache.org/docs/1.3/mod/mod_dir.html#directoryindex)
IndexIgnore (http://httpd.apache.org/docs/1.3/mod/mod_autoindex.html#indexignore)

Bladez
10-19-2008, 07:12 AM
configure your apache :

<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>


under your httpd.conf

mayooresan
10-20-2008, 05:09 AM
configure your apache :


under your httpd.conf
above code was added and config file was saved.. still the problem continues.. :(

mayooresan
10-20-2008, 05:22 AM
When you point your browser to a folder it should display the index.html or index.php file of that folder.

For example if you point your browser to http://mayuonline.com/test it should display the index.html file under the directory test.

I configured Apache (http://httpd.apache.org/) to run on my local machine and I found that when I point my browser to a folder it lists the files in that folder, instead of pointing to index.php.

searched and found the solution for the problem.




Open your http.conf file in Notepad (which can be found in the folder where apache is installed)
Search for DirectoryIndex
You will find something like "DirectoryIndex index.html index.html.var"
Replace it with "DirectoryIndex index.html index.php index.html.var"

Now your browser will point to index.php files too

thanks myitdiary (http://myitdiary.blogspot.com/2008/10/apache-and-directory-listing.html)