Run PHP4 on Windows 2000PHP4 b4 comes with instruction in the readme file for setting up under PWS: you add it as a filter, and as a script engine. Heres what I did, In short:
Copy PHP4TS.dll to %SystemRoot%System32
On a fresh install of Win2k the other required dll, msvcrt.dll is allready there and is newer so I wouldn't risk overwriting it :).
Copy PHP.INI-DIST to %SystemRoot%PHP.INI
--> It should work straight out of the box, if you follow the guidelines below.
In Internet Servicices Manager, Expand the server you want, then right click on the WWW site you want PHP to work on: you can do this for more than one site of course.
>From the right click menu, choose Properties.
In the window that comes up, choose the ISAPI Filters tab, click Add...
In the little dialog, tell it the path to PHP4ISAPI.DLL, which will be wherever you unpacked PHP to. (this ONLY applys to version 4.0 and above. There is no ISAPI mode of v3 as far as I know).
Give it the name of PHP.
Once you've done that, and clicked OK, change to the tab "HomeDirectory", Look around the "Application Settings" label. Around that area youwill see a button labelled "Configuration". Click it!
In the window that pops up, click add. In the executable field, tell it where the PHP4ISAPI.dll file is. (if you have v3, and not v4, point it to php.exe at this stage). Tell it what extension to use. PHP or PHTML are common. (You do NOT need the . before the extension). Verbs: All Verbs. Script Engine: Yes. Check that file exsists: Up to you, I guess. Will either let IIS generate the 404, or PHP give users a "No Input File Specified".... I urge youchoose yes :) Click ok. You will need to repeat this step for each file extension you want PHP to work with!
You then need to completely stop IIS. You can do this by "net stopiissvc" from the command prompt (under win2k I get this by running cmd.exe).
>From the command prompt type "net start w3svc". Now return to Internet Services Manager, and start each of the services again.
Now make a page like page.php in the root of your site (of course replace the .php with an extension that setup to work with PHP!), and just put something simple like <? echo($HTTP_USER_AGENT); ?> In the file. This also tells you what you are telling every site you visit :).
This is a bit more wordy than the PHP readme, but hey it worked on IIS5/WIN2k, and IIS4/WinNT4Server.
Hope this assists :) Patick. |
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |
More Code Examples Articles More By aspfree developerWorks - FREE Tools! | Hold your calendar on January 30, 2008 for this free webcast on the new i5/OS. Rational's Enterprise Modernization products will be discussed at this webcast as they help to drive the application development environment for this new System i OS. <br />And learn how i5/OS will take you to the next step of efficient, resilient business processing. You will hear about the new i5/OS capabilities as it will be the most significant i5/OS release in years. If you cannot join the webcast on 1/30/08 you can still use this link to listen to the replay.<br /> FREE! Go There Now!
| | | | David Barnes, Lead Evangelist for IBM Emerging Internet Technologies will discuss aspects of Web 2.0 that bring value to corporations, academia, and government. He'll also discuss IBM's vision around Web 2.0, including the importance of remixability and consumability. The discussion will culminate with examples of various IBM Software Group solutions you can use to get ahead of the Web 2.0 adoption curve. FREE! Go There Now!
| | | | Visit IBM developerWorks to download the latest trial version of IBM Data Studio V1.1 at no cost. IBM Data Studio is a comprehensive data management solution that helps you effectively design, develop, deploy and manage your data, databases, and database applications throughout the data management life cycle utilizing a consistent and integrated user interface. Unlike other client-side data management solutions that focus on only one aspect of the application lifecycle or database administration, Data Studio complements the Rational Software Delivery platform, providing unparalleled flexibility for a heterogeneous data server environment across platforms. FREE! Go There Now!
| | | | Download a free trial version of IBM Rational Developer for System z, software that can help you deliver core development capabilities; the power of Java Platform, Enterprise Edition (Java EE); and rapid application development support to diverse enterprise application development teams. With comprehensive development tools to help create, deploy and maintain traditional enterprise and composite applications, Rational Developer for System z enables developers with different technical backgrounds to easily participate in important technology projects. FREE! Go There Now!
| | | | Visit IBM developerWorks to download a free trial version of IBM Rational Business Developer V7.1. Rational Business Developer offers rapid and simplified development of business applications and services through Enterprise Generation Language (EGL) tools, generating Java or mainframe solutions while shielding developers from technical complexities. FREE! Go There Now!
| | | | Join us for this web seminar to learn how you can defend your web applications from attack. Learn about the 3 most common web application attacks, including how they occur and what can be done to prevent them. We’ll also discuss manual versus automated approaches for scanning and identifying web application vulnerabilities and how IBM Rational AppScan, an automated vulnerability scanner, can help you automate more of what you are doing manually today. FREE! Go There Now!
| | | | Learn how to do more with your reusable assets with the free Rational Asset Manager eKit. The eKit includes demos on how Rational Asset Manager tracks and audits your assets in order to utilize them for reuse. Plus you’ll find white papers and a Webcast that discuss the challenges of a Service Oriented Architecture and how Rational Asset Manager can provide quick and effective solutions. FREE! Go There Now!
| | | | Join this Rational Talks to You teleconference on December 11 at 1:00 pm ET to get tips on building your own plugins with Rational Method Composer. Get your questions answered! FREE! Go There Now!
| | | | Join this Rational Talks to You teleconference on December 4 at 1:00 pm ET to discuss how Rational Method Composer can help meet your compliance objectives. Get your questions answered! FREE! Go There Now!
| | | | As businesses grow increasingly dependent upon Web applications, these complex entities grow more difficult to secure. Most companies equip their Web sites with firewalls, Secure Sockets Layer (SSL), and network and host security, but the majority of attacks are on applications themselves – and these technologies cannot prevent them. This paper explains what you can do to help protect your organization, and it discusses an approach for improving your organization’s Web application security. FREE! Go There Now!
| | | | All FREE IBM® developerWorks Tools! | |