Re: Apache Installation Query
| From: | Brian V Bonini | Date: | Sat, 06 Dec 2003 16:34:45 +0000 |
| Subject: | Re: Apache Installation Query | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172069@lists.php.net to get a copy of this message | ||
On Sat, 2003-12-06 at 10:56, Shaun wrote:
> Hi,
>
> I have just installed Apache on my local machine. However, when browsing a
> directory I get the listing of it's contents rather than it defaulting to
> the index.php file, is there a way to make this happen?
>
> Thanks for your help
move to your apache conf dir and grep -n DirectoryIndex * to see which
config file has this directive, typically httpd.conf but not
necessarily.
Then:
sed 's/DirectoryIndex index.html/DirectoryIndex index.html index.php/g'
httpd.conf > httpd.conf.new
or something similar, check results and move the .new file to httpd.conf
or whatever it is called on your system and restart apache.
Oh, assuming UNIX BTW...