WordPress.org

Forums

[resolved] Setting homepage with WordPress (8 posts)

  1. trim32
    Member
    Posted 3 years ago #

    I'v installed WordPress 3.2.1 with Apache 2.2 and PHP 5.2. Trying to build a test site on my machine (localhost).
    I wanted to integrate WordPress into the root so I'v copied the wordpress files into Apache2.2/htdocs directory. I'v created a homepage and blogs page from the administrative panel. I don't see any of those html pages actually created in the htdocs directory.
    Moreover, WordPress does not return the homepage (as created from the admin panel) at the root url i.e. when I open http://localhost, I see the htdocs directory contents instead of any homepage (i.e. after removing Apache's default homepage index.html). Similarly http://localhost/wp-admin returns the directory contents. I have to go to http://localhost/wp-admin/index.php in order to view admin panel.
    How do I render my homepage from root url?

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    I don't see any of those html pages actually created in the htdocs directory.

    That's because your site's content is stored in your database with pages generated on demand.

    How do I render my homepage from root url?

    Try adding index.php into the DirectoryIndex in your httpd.conf file.

  3. trim32
    Member
    Posted 3 years ago #

    Thanks for the reply esmi. But that didn't help. It still returns the directory contents. Even invoking http://localhost/index.php explicitly doesn't help. Apparently index.php isn't doing much

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Did you install WordPress into the server root from that start? Or move it post-install?

  5. jbryl
    Member
    Posted 3 years ago #

    Please can anyone help me i have localhost installing problem

  6. trim32
    Member
    Posted 3 years ago #

    Sorry for earlier reply.... This actually works!!!... Thanks a lot :)

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    @jbryl: It is considered impolite to interrupt another poster's thread. Please post a new topic.

  8. esmi
    Forum Moderator
    Posted 3 years ago #

    @trim32: Excellent! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic