WordPress.org

Ready to get started?Download WordPress

Forums

Localhost install - wp-admin works, but frontpage is text only (4 posts)

  1. stephenbuck415
    Member
    Posted 2 years ago #

    Hi everyone.

    I'm new to performing WordPress installs, and have just made my first attempt to install it onto my localhost. This is also the first time I've set up a local server.

    I have successfully installed Apache, PHP, and MySql onto my Windows machine. Each is manually installed into a unique directory, and I have also successfully installed WordPress into a directory... but wp only partially works.

    I can log into wp-admin and the backend looks like it should. Everything is arranged with graphics and everything works.

    However, when I visit the front end of the site, it's just plain text. I get a title that says "Index of /localhost-site-name", followed by a bulleted list that includes:
    Parent Directory
    _notes/
    index.php
    license.txt
    readme.html
    and so on.

    Since the back end looks and works the way it should, is there a localhost installation step that I've missed to cause the main index page not not display everything properly?

    Thanks

  2. Tara
    Member
    Posted 2 years ago #

    see if this forum has some info pertinant to your issue: http://wordpress.org/support/forum/localhost-installs

  3. Ross Hanney
    Member
    Posted 2 years ago #

    Hello,

    It sounds like Apache hasn't been set to serve index.php as one of its directory index files (by default it will only serve index.html, or if that doesn't exist, fall back to a directory listing, which is probably what you're seeing).

    You can adjust your Apache httpd.conf file so that Apache will look for files other than index.html before falling back to the directory index.

    Look for the following in your httpd.conf file:

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

    and add in index.php, like this:

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

    Save the file, restart Apache, then visit localhost/site-name and it should load the site.

  4. stephenbuck415
    Member
    Posted 2 years ago #

    @ross

    Your fix solved the problem. Apache was not set to call the WordPress index.php files. The install now works fine.

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic