Mailinglist Archive: opensuse (4348 mails)

< Previous Next >
Re: [SLE] apache and index.php
  • From: steve <fsanta@xxxxxxxxxx>
  • Date: Sun, 13 Oct 2002 00:23:18 +0200
  • Message-id: <200210130023.18805.fsanta@xxxxxxxxxx>
On Sunday 13 October 2002 00:30, you wrote:
> On Sat, 2002-10-12 at 18:17, steve wrote:
> > On Sunday 13 October 2002 00:08, R. R. wrote:
> > > On Sat, 2002-10-12 at 17:55, steve wrote:
> > > > My server (Apache with mod_php4 under 8.0) doesn't recognise
> > > > index.php as it recognises index.html. Instead it gives a directory
> > > > listing. How can I fix this?
> > > > Thanks, steve.
> > > >
> > > > --
> > > > Check the headers for your unsubscription address
> > > > For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
> > > > Also check the archives at http://lists.suse.com
> > > > Please read the FAQs: suse-linux-e-faq@xxxxxxxx
> > >
> > > look in /etc/httpd/httpd.conf
> >
> > I'd always been so scared of that file! Here is the solution:
> >
> > <IfModule mod_dir.c>
> > DirectoryIndex index.html index.php
> > </IfModule>
> >
> > Then do a rcapache restart.
>
> for some reason i always need to commend the if and leave the statement
> on its own
>
Have I done it wrong? How *should* it read?

< Previous Next >
This Thread
References