Not able to view my site when installed on local machine (4 posts)

  1. gagrawal
    Posted 3 years ago #


    I have installed wordpress successfully on my local machine.

    I created a demo page also for my site, but when I click "Visit Site" it takes me to the directory structure of root directory where wordpress is installed. all the files are displayed on the browser.

    I'm not getting why it's happeing, please tell me.

    Gaurav Agrawal

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Try configuring the DirectoryIndex on your local server.

  3. nadafouad
    Posted 2 years ago #

    Hi...I'm facing the same problem just like urs gagrawal. did u manage to fix? if yes, would you please tell me how??I'm getting really frustrated cause i tried everything!


  4. gagrawal
    Posted 2 years ago #

    Add index.php to DirectoryIndex in Apache2.2 httpd.conf on Windows

    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    <IfModule dir_module>
    DirectoryIndex index.html index.php

    That's what I did. We have to index our index.php first after that server will take it.


    Let me know Once it is done!

Topic Closed

This topic has been closed to new replies.

About this Topic