• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP 4.2.3 & IIS 6.0... Working!

Thalasi

Senior member
Alrighty, well I'm trying to get PHP 4.2.3 working on my server. My server is currently running Windows.Net Enterprise Server Build 3663 RC1 with IIS 6.0. I followed the installation instructions down to the T, making sure that IUSR_MACHINENAME has all the correct permissions (Read & Execute) to both the php.exe directory and the www root directory. Also I've made sure that the .php Application Extension from within IIS was set to the correct path. Yet it doesn't want to work. I will be running Invision Board (written in php) which I already have installed on my server but am unable to even set it up since I am unable to access any php pages. This is my first time working with php on my server so please bare with me. Any hints and suggestions are greatly appreciated!
 
What error message do you get when you try to access php pages?

And which instructions (URL, please) did you use to setup PHP under IIS?
 
I get HTTP Error 404 - File or directory not found.
I followed the instructions that came with the php installer, Linky, as well as read through the faq at php.net
 
A 404 is a "there is no file at all at the place that you told me to look".

If you make a simple php script, e.g.:

<?php
phpinfo();
?>

Call it sample.php, put it in your webroot and try to hit http://localhost/sample.php do you still get a 404?
 
geoff2k:
Yep, I tried doing that too and got the same 404 error, with both http://localhost/forums/phpinfo.php and with the domain name. linker
I appreciate your trying to help me on this one. It's not like this is a big important website that has to get done within 2 days. I'm doing this on my own time just for fun to see if I can get it working. If I can't get it to work because the OS is beta... then oh well. I'm trying to see if it will work. I've never installed php on any other type of server before so I'm am sure I've done something wrong, but if thats not the reason why it's not working, then oh well. 🙂
 
I don't do the IM thing, sorry.

If you put a "normal" html file in the same directory as your phpinfo.php, does it come up, or do you still get a 404?
 
Originally posted by: geoff2k
I'm almost stumped. Are you installing PHP as an ISAPI filter or a CGI application?

Im thinking its IIS. IIS 6 is supposedly heavily redone, so php just might not work with it yet. It could be some wierd permissions problem though, I dont know enough about Windows.
 
See, that's just it -- I would expect that even a beta version of IIS would be able to handle CGI, and as far as IIS is concerned, PHP.exe is a pretty routine CGI program.

I don't know how much of the ISAPI stuff they've moved forward into the new IIS, so who knows how broken that is, but a plain old CGI program should work fine.

My recommendation is to try installing it (manually, if need be) as a CGI app, and see if that works.
 
Alright guys... I got it to work!!
Under .Net you have to enter the Web Service Extension manually. For anyone else that has/had my problem... under Web Service Extensions in the IIS management console just add PHP and give it access to your php.exe where ever you have it installed. Then just set its status to allowed.
www.thalasi.com/phpinfo.php

😀
 
Back
Top