Click to See Complete Forum and Search --> : Installation problem with PHP5 ISAPI + W2K + IIS5


aauger
07-28-2006, 07:28 PM
I've been stucked for a couple of days trying to install PHP5 (ISAPI) on W2K with IIS5. I followed the instruccions of php.net and some others, but the situation is really strange to me. Let me explain step by step what I've done till now:
1. Extracted the .zip file to E:\php
2. Changed the php.ini-recomended filename to php.ini and edited doc_root = "E:\wwwrootphp", and extension_dir = "E:\php\ext"
3. Didn't move any file to another folder, EVERYTHING (php.ini, php5ts.dll, php5isapi.dll, etc...) is in E:\php
4. Modified the server's PATH enviroment variable, adding "....;E:\php"
5. Rebooted the server
6. Started the IIS manager, and under the home site I created a new virtual folder called "php" to keep separated php scripts (I'm also using ASP .NET on this server). The folder selected was "E:\wwwrootphp" (remember step 2.), clicked "Configuration", Fliped to the "Mappings" tab, Clicked "Add...", entered the full path (E:\php\php5isapi.dll) to php5isapi.dll in the "Executable" textbox, entered ".php" in "Extension" textbox, selected radial button "Limit to" and entered "GET,POST,HEAD".
7. Finally I restarted the IIS on command line.
I thoght everything was ok because I tested the installation with a little script executing <? echo phpinfo(); ?>. I got the typical page whith the typical information, BUT I realized that path to the php.ini file was "C:\WINNT", and I didn't move this file from E:\php :queasy: . After that, I also realized that the value of extension_dir was incorrect: the page said "C:\php5", but I wrote "E:\php\ext" :queasy: :queasy: . After a little research on the Internet, I realized that my php.ini config file is not recognized by the php. The worst thing came after: I moved the php.ini file to the folder C:\WINNT, and after restart the IIS and the server for about 100 times, even the little script didn't work, I mean, php didn't run on the server.
I've tried moving files, setting PHPRC variable, but none of these worked.
After 2 days trying to solve this problem, I ran out of ideas. Help me :confused:
Regards.

Houdini
07-28-2006, 10:45 PM
Here is my standard answer for cases like this:

Remove or deactivate IIS
Download XAMPP here (http://www.apachefriends.org/en/xampp.html)
Install XAMPP
Run PHP MySQL and Perl with Apache

aauger
07-28-2006, 10:52 PM
Thanks for your advice, I really woulkd like to do that (and also use Linux...), but they are restrictions to my problem, I can do anything about it, I MUST USE WHAT I SAID.
Regards

Houdini
07-28-2006, 11:22 PM
Then get the install for Windows from PHP.net and let it do its thing. There is one for IIS there, try it then tweak it out.

aauger
07-30-2006, 11:50 PM
Finally I got it!!! :rolleyes:
Keeping the installation as I explained in my first post, I had to make 2 changes:
1. I moved the php.ini file to the folder C:\WINNT
2. The most important thing was: the "doc_root" value in the php.ini MUST be empty.
After these 2 changes, and restarting the IIS, php worked fine!!!
Cheers!!! :D