Forums

Listing contents of directory instead of launching index.php (4 posts)

  1. bi11i
    Member
    Posted 4 years ago #

    First time Unix user, I've managed to create the database, create a folder ('blog') under /www/htdocs, and get my files uploaded, but when I head to my URL, I get a listing of the directory, 'blog', rather than the launching of index.php. I can manually launch index.php, which works fine. Everything looks to have the correct chmod - any ideas on what I should be doing here?

    Thanks...

  2. podz
    Support Maven
    Posted 4 years ago #

    Create a .htaccess file at site root, and put this line into it
    DirectoryIndex index.html index.htm index.php

    That should sort things :)

  3. bi11i
    Member
    Posted 4 years ago #

    Thanks, it did!

    Isn't there something somewhere about chmodding this file to enable permalinks? What should it be?

  4. MissusP
    Member
    Posted 3 years ago #

    Podz: This worked for me...I can't believe (beyond newbie here) I even understood what "site root" meant and actually found it and inserted it and edited it...bring out the champagne toasts!! LOL Anyhow, thanks...this worked for me. (now about permalinks question...what is that about?) Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic