Categorized | PHP

How do I make my Apache server recognize .php files as the index file of a website?

Posted on 10 May 2010 by Abidoon

I have a directory www.site.com/files

In that directory is the file index.php, how do I make Apache automatically open that file like it does with index.html.

I have php installed.

Tags | , , , , , , ,

2 Responses to “How do I make my Apache server recognize .php files as the index file of a website?”

  1. Jade G says:

    go see the place that fixes computers in ur town

  2. KillAllHippies says:

    1. Open your httpd.conf file
    2. Find the line starting with keyword “DirectoryIndex”
    3. Add index.php to that line
    4. Reboot apache


Leave a Reply