• Resolved trituc.cao

    (@trituccao)


    Hi,
    I’m trying to test run wordpress on my PC.However I cannot see my front page: the web browser only displayed the directory listing instead. Please help!

    Software installed:
    WordPress 3.0.1
    PHP 5
    Apache 2.2
    MySQL
    Windows XP (SP2)

    Progress:
    WordPress installation complete.
    Logged in as admin successfully

    Problem:
    After logging in all I saw was the directory listing of wordpress web root folder. Using this directory listing, click wp-admin/ –> index.php, I could go to the admin panel/page where I could create new pages, change themes, settings, etc. However I could never see any page I created or precreated. For any page, if I click ‘view’ the web root directory listing was displayed (as described above).

    Efforts: I have spent nearly one day trying to solve the problem. I have made the following attempts:
    * Redownload and reinstalling (does not work)
    * Setting static page
    * Changing Appache httpd.conf to include my own wordpress.conf, replacing the original .htaccess with an empty .htaccess in the wordpress folder (does not work)
    * Turn on WP_DEBUG, WP_DEBUG_DISPLAY, WP_DEBUG_LOG by modifying wordpress/index.php: no error message observed, no log file created (in wordpress/wp-content)

    Clue?
    * When I renamed wordpress/index.php to wordpress/index.php.bk, I could still see the directory listing when entered web address: <myipconf>/wordpress. However if I click on the entry ‘index.php.bk’ the frontpage was displayed however the title (shown in tab) was ‘MyWebSitTitle | Not Found’

    Can somebody please help with this?

    Lots of thanks,

    Tuc

    =========
    Below is the content of my wordpress.conf

    <IfModule mod_rewrite.c>
    LoadModule rewrite_module modules/mod_rewrite.so
    </IfModule>

    AccessFileName .htaccess
    <Files ~ “^\.htaccess$”>
    order allow,deny
    deny from all
    </Files>

    Alias /blog/ “C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/wordpress”

    <Directory “C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/wordpress”>
    order allow,deny
    allow from all
    Options All
    AllowOverride All

    AddType text/html .php
    AddHandler application/x-httpd-php .php
    </Directory>

Viewing 2 replies - 1 through 2 (of 2 total)
  • simplify your life and use this – works for me every time
    http://www.tamba2.org.uk/wordpress/xampp/

    Thread Starter trituc.cao

    (@trituccao)

    Thanks Samuel,

    I think I found the problem. My apache was setup to load a file named “index.html” when a directory is requested. WordPress does not provide any index.html in the root directory, so the server just plainly displayed a directory. To fix this, in the httpd.conf of apache, I change the setting of apache to load the index.php file when a directory is requested:

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

    The only thing I still don’t understand is that, previously when I deliberately tried to load index.php (ie enter the url directly), somehow I could not see the page. Somehow the wordpress is structured not to allowed index.php to be loaded directly.

    Tuc

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cannot see website front page’ is closed to new replies.