News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Windows 2003 + PHP installation >:(

Started by Les Mackenzie, October 16, 2003, 11:14:51 AM

Previous topic - Next topic

Les Mackenzie

I'm having an issue installing PHP4 on my IIS 6.0 server.  I am using the installer and am told that PHP 4.3.3 has been installed successfully but get the following error.

"Due to missing OCX control on your systems, the installation Wizard is unable to configure your web server.  However, PHP has been successfully installed, and all you need to do now is manually configure the web server as described in the install.txt file which can be found in your php installation directory."

I manually configure for 'IIS 4.0 or greater' and continue to get a
"The page cannot be found - 404" error when accessing anything with a php extension?

I have defined all the neccessary permissions for the dir. etc but still have an issue with the above error.

I'm a first time installer on this platform so does anyone either (a) have a theory as to why this doesn't work or (b) have a solution that they have found.
BLOGS SUCK! - HERE READ MINE

Please Note:  Arguing on the internet is like running in the Special Olympics...  Even if you win you're still retarded.

mephisto_kur

I'm not going to be helpful, I just want to say that this is the reason I moved to Apache.  Win2k with IIS5 and the thing just would *not* hook in to php, then I had an issue with MySQL and php not being able to work together... ugh, that was a nightmare.  I switched to Apache, and now I can't imagine going back.  So my internal dev server is running 2k, Apache, even Tomcat (for my wife) and each install was pretty simple.

Wish I could help.
She put her foot down on the oscillation pedal - she was a transdimensional speeder!



[Unknown]

I've run PHP on IIS 4, 5, 5.1, and 6.  It is very possible.

I've found that 2003 has issues with the current ISAPI.  Try the CGI, and make sure you've enabled all unknown CGI/ISAPI extensions. (for now at least.)

See if that works.

-[Unknown]

Tony Reid

On my webserver at work, I run PHP4 & MySQL on w2k with IIS 5 - but use the CGI version.

Some say its slower, but to be honest, it doesnt seem to make any significant difference to me  :-\

Tony Reid

Jeff Lewis

Co-Founder of SMF

Les Mackenzie

I actually found the solution after busting a nut on google.  The install.txt doesn't contain the following information I found on php.net

If you want to use the CGI binary, do the following:

Under 'Home Directory', 'Virtual Directory', or 'Directory', click on the 'Configuration' button, and then enter the App Mappings tab.

Click Add, and in the Executable box, type: c:\php\php.exe (assuming that you have unziped PHP in c:\php\).

In the Extension box, type the file name extension you want associated with PHP scripts. Leave 'Method exclusions' blank, and check the Script engine checkbox. You may also like to check the 'check that file exists' box - for a small performance penalty, IIS (or PWS) will check that the script file exists and sort out authentication before firing up php. This means that you will get sensible 404 style error messages instead of cgi errors complaining that php did not output any data.

You must start over from the previous step for each extension you want associated with PHP scripts. .php and .phtml are common, although .php3 may be required for legacy applications.

Set up the appropriate security. (This is done in Internet Service Manager), and if your NT Server uses NTFS file system, add execute rights for I_USR_ to the directory that contains php.exe.


But I'd like to thank everyone for their help  :-\

BLOGS SUCK! - HERE READ MINE

Please Note:  Arguing on the internet is like running in the Special Olympics...  Even if you win you're still retarded.

Advertisement: