Forums

[resolved] trouble viewing website (3 posts)

  1. ankitb1989
    Member
    Posted 10 months ago #

    i am running windows 7 home edition on my laptop with apache 2.2.19 installed ,php 5.2.17,mysql 5.1.57 installed.i installed wordpress but when i view the sample page given all i get is my wordpress folder written in text with th tree of the wordpress directory structure.when i view the sample page the address in the address bar of my internet explorer 8 becomes like this
    http://localhost/wordpress/?page_id=2

    the page displays this
    Index of /wordpress
    Parent Directory
    index.php
    license.txt
    readme.html
    wp-activate.php
    wp-admin/
    wp-app.php
    wp-atom.php
    wp-blog-header.php
    wp-comments-post.php
    wp-commentsrss2.php
    wp-config.php
    wp-content/
    wp-cron.php
    wp-feed.php
    wp-includes/
    wp-links-opml.php
    wp-load.php
    wp-login.php
    wp-mail.php
    wp-pass.php
    wp-rdf.php
    wp-register.php
    wp-rss.php
    wp-rss2.php
    wp-settings.php
    wp-signup.php
    wp-trackback.php
    xmlrpc.php

    please help me and tell me what i m doing wrong

  2. MichaelH
    Volunteer
    Posted 10 months ago #

    See if one of these help:

    Solution 1
    If allowed by your host, putting this in an .htaccess file will solve the problem:
    DirectoryIndex index.html index.htm index.php

    Solution 2
    Some hosts allow you to make a change, via their hosting control panel, to the DirectoryIndex. It's typically described as Indexes or Index documents, but may also require you to type something like
    DirectoryIndex index.html index.htm index.php
    or specify index.php as an index type file.

    Solution 3
    Instruct Apache to treat index.php as an index file. If you own the server, or have access to the http.conf file, simply modify the DirectoryIndex line in httpd.conf to:
    DirectoryIndex index.html index.htm index.php

    Solution 4
    Contact your host

  3. ankitb1989
    Member
    Posted 10 months ago #

    well thank you very very much.
    solution 3 worked for me but please can you explain what it did.thanks again
    you r a genius

Reply

You must log in to post.

About this Topic

Tags

No tags yet.