Re: Apache Installation Query
| From: | Brian V Bonini | Date: | Sat, 06 Dec 2003 21:42:41 +0000 |
| Subject: | Re: Apache Installation Query | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172095@lists.php.net to get a copy of this message | ||
On Sat, 2003-12-06 at 12:01, Shaun wrote:
> "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...
Sorry to hear that.. ;-) I suppose whatever tools Win has to to search
and replace will suffice then.