Re: Apache Installation Query

From: Date: Sat, 06 Dec 2003 17:01:12 +0000
Subject: Re: Apache Installation Query
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-172071@lists.php.net to get a copy of this message
"Brian V Bonini" <b-bonini@cox.net> wrote in message news:1070728485.27719.34.camel@home.gfx-design.com... > 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... Sorry no, Windows XP Pro...

« previous php.general (#172071) next »