1
lightener
Apache to use index.php on directory open
  • 2004/7/27 15:04

  • lightener

  • Just popping in

  • Posts: 1

  • Since: 2004/7/27


Guys,

I installed phpdev with Apache. When the link point to something sayhttp://site/xoops it wont'show the XOOPS index page. i need to typehttp://site/xoops/index.php for it to load correctly.

Is there anyway to configure the apache to find index.php? Or are there alternatives? Thanks for all your help.

2
rocket98
Re: Apache to use index.php on directory open
  • 2004/7/27 16:27

  • rocket98

  • Just popping in

  • Posts: 95

  • Since: 2004/6/2 2


In httpd.conf find a line looks like this

DirectoryIndex index.html

change to

DirectoryIndex index.html index.php

regards
rocket98

3
m0nty
Re: Apache to use index.php on directory open
  • 2004/7/27 16:33

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


also using this config method is working in specific order..

so if u have DirectoryIndex index.html index.php

then it will look for index.html 1st, if it don't find index.html it looks for index.php

therefore if you have an index.html file in your root folder it will display that file instead of index.php

so u can either change the order round to DirectoryIndex index.php index.html

or simply remove the index.html from your root if u have 1..

4
koertzen
Re: Apache to use index.php on directory open
  • 2004/7/28 12:52

  • koertzen

  • Just popping in

  • Posts: 79

  • Since: 2003/10/22


Also, try putting the slash after the first link.

http://site/xoops/ instead ofhttp://site/xoops

I have seen similar behavior, but occasionally the system needs that final slash to recognize it and look for an index file of some sort.

Login

Who's Online

233 user(s) are online (158 user(s) are browsing Support Forums)


Members: 0


Guests: 233


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits