Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS6 Win3k PHP 4.4.6

Status
Not open for further replies.

DonP

IS-IT--Management
Jul 20, 2000
684
US
After discovering some incompatibilities between a new Intranet site and PHP 5.x, I downgraded PHP to v 4.4.6. It WAS working however after rebooting the server, it now gives only a "Page not found" error on PHP pages (HTML pages still load). Any ideas? Thanks.

Don
Experienced in HTML, Perl, PHP, VBScript, PWS, IIS and Apache and MS-Access, MS-SQL, MySQL databases
 
i guess you'll have to change the bindings in the IIS management snap-in to point at the php4 sapi rather than the php5 sapi. you need to do this in two different places within the snap-in. the instructions are inside the php download folder.
 
The sarcasm is appreciated and I agree (and resistance is futile)! However, I upgraded again back to PHP v5.2.1 and am back to the same problems it had before, which are listed in another post. To answer jpadie's comment, yes, I did point it back to the php4 sapi as part of the downgrade.

Don
Experienced in HTML, Perl, PHP, VBScript, PWS, IIS and Apache and MS-Access, MS-SQL, MySQL databases
 
I have come across the Page Not Found error in three circumstances:

1. bad configuration of php sapi with IIS. remember there are TWO places you have to fix it unless you're using a cgi
2. bad configuration of php.ini or mislocation or extensions not available (note that it is a really good idea to set up the path and other environmental variables)
3. when using virtual directories (i've never been able to fix this, but haven't given it much time either).
 
All this was done (I've set up PHP countless times) and I even set the path location in the registry using a little script that I wrote some time ago for the purpose which the install utility does not do on its own for some reason. It's much easier setting it up in Apache due to all the restrictions in Win3k Server but now it works at last, and even continues working after a reboot. Thanks.

Don
Experienced in HTML, Perl, PHP, VBScript, PWS, IIS and Apache and MS-Access, MS-SQL, MySQL databases
 
i've never come across an install utility for windows, other than for the CGI which is a completely different kettle of fish. the sapi, sfaik, always needs a manual install.
 
The PHP install for Windows, at least on the newest versions, has a selection for whether CGI or SAPI is needed and installs the appropriate DLLs but you're right, it generally needs some manual setting changes too.

Don
Experienced in HTML, Perl, PHP, VBScript, PWS, IIS and Apache and MS-Access, MS-SQL, MySQL databases
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top