Find the answer to your Linux question:
Results 1 to 3 of 3
What file do edit to allow apache to use index.php instead of just reading the directory? ie if no index.html then use index.php...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305

    apache handling php files


    What file do edit to allow apache to use index.php instead of just reading the directory? ie if no index.html then use index.php
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  2. #2
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    Add the following you need to have mod_dir
    Code:
    <IfModule mod_dir.c>
        DirectoryIndex index.php index.pl index.html index.htm index.shtml index.cgi
    </IfModule>

  3. #3
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    Cheers Giro, will put that in when I get home.

    Ta.
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •