dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: brower doesn't direct to index.php

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Location
    Sri Lanka
    Posts
    43

    brower doesn't direct to index.php

    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

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Last edited by Fang; 10-09-2008 at 09:13 AM.

  3. #3
    Join Date
    May 2008
    Posts
    23
    configure your apache :
    <IfModule dir_module>
    DirectoryIndex index.php index.php3 index.html index.htm
    </IfModule>
    under your httpd.conf

  4. #4
    Join Date
    Mar 2008
    Location
    Sri Lanka
    Posts
    43
    Quote Originally Posted by Bladez View Post
    configure your apache :


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

  5. #5
    Join Date
    Mar 2008
    Location
    Sri Lanka
    Posts
    43
    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 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles