Page 1 of 1
index.php?
Posted: Fri Feb 07, 2003 5:11 am
by hairyjim
Hi all,
Im a bit new to php. Is it possible to auto load an index file by just typing the path to the folder.
I run a Win NT box with IIS, PHP and MySql
e.g
http://www.somedomain.com/intranet/
Which would load an index.php file automatically?
I know this is probably dead easy, but the manual is not searchable and it is rather large and daunting for a newbie.
Posted: Fri Feb 07, 2003 5:27 am
by redcircle
I would load up Apache and not use IIS
Posted: Fri Feb 07, 2003 5:35 am
by Johnm
Somewhere in the IIS config file you can designate what type of file the web server needs to look for when it accesses a directory. In Apache it is in the httpd.conf file. I am not sure about IIS.
Here.... 2 minutes on Google...
To set the default document (not done this for a while, so bear with me!) , go into IIS service manager, right click on the site root, select properties then select the document tab. It (should) be set to serve default.htm as the default doc. Add index.html (or whatever your 'home page' naming convention is?) and then select ok. I don't think you need to re-start IIS, but I wouldn't be suprised if you have to?
John M
Posted: Fri Feb 07, 2003 5:40 am
by redcircle
all that clicking.. I like vi httpd.conf much more.. er edit httpd.conf
Posted: Fri Feb 07, 2003 5:56 am
by hairyjim
I have little choice I am afraid chaps. Stuck with IIS because of an existing sites framework.
Posted: Fri Feb 07, 2003 6:00 am
by Johnm
Did that work for you?
John M
Posted: Fri Feb 07, 2003 6:01 am
by hairyjim
just gonna try. Post in 10 mins and let you know.
Posted: Fri Feb 07, 2003 6:17 am
by hairyjim
What a surprise IIS brought down my server!
Do not know if it has worked, my services won't start now!!

Posted: Fri Feb 07, 2003 9:50 am
by volka
yeah, I noticed that, too.
IIS is a nice webserver but not a "change-content-or-settings"-server. As long as you keep it alone (and it's not attacked :-S ) it's working nicely, but change something, even stop and restart it and the probability of a crash increases rapidly.
I don't want to say "it's crap" but I'm happy whenever I don't have to deal with it. But this is not always a matter of choice....
Posted: Fri Feb 07, 2003 9:54 am
by hairyjim
Well,
I finally got IIS back up and running. Dropped all my app settings
Made the change but it did not work.
I think the problem lies with another scripting engine I have installed called Lasso. I am currently discussing this on the Lasso lists also.
Seems this could be a problem in running both engines on the same server.