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! | As businesses grow increasingly dependent upon Web applications to provide services to customers, employees and partners, these complex applications become more difficult to secure. Although traditional security solutions protect Internet infrastructure layers, they do not guard against HTTP and HTML attacks. Many organizations that conduct security testing still deploy applications that allow attackers to manipulate their logic and wreak havoc on their business. To mitigate this risk, development and delivery teams must address Web application security throughout the lifecycle, addressing the many layers detailed in this paper. FREE! Go There Now!
| | | | Visit IBM developerWorks to download IBM DB2 Express-C 9.5, a no-charge version of DB2 Express 9 database server. DB2 Express-C offers the same core data server base features as other DB2 Express editions and provides a solid base to build and deploy applications developed using C/C++, Java, .NET, PHP, and other programming languages. FREE! Go There Now!
| | | | Download a free trial version of IBM Rational Developer for System i V7.1, which provides a complete development environment for traditional i5/OS application development. IBM Rational Developer for System i is a new eclipse-based workstation offering for i5/OS application development that provides a comprehensive Integrated Development Environment for edit/compile/debug of traditional RPG/COBOL/C/C++ i5/OS applications. FREE! Go There Now!
| | | | IBM Enterprise Modernization solutions help organizations evolve core IT systems towards modern architectures and technologies—reducing the burden of maintenance and freeing up resources to develop new business requirements and capabilities. With the IBM Enterprise Modernization Sandbox for System z you can evaluate IBM Enterprise Modernization solutions focused on five key areas: Assets, Architectures, Skills, Processes and Infrastructures, and Investment. Each solution is based upon real customer experiences and offers a proven path to get you started with your modernization projects. FREE! Go There Now!
| | | | Secure your Web applications with IBM Rational AppScan Standard Edition V7.7, previously known as Watchfire AppScan. This Web application security testing tool automates vulnerability assessments and scans and tests for common Web application vulnerabilities. Visit IBM developerWorks to download a free trial of IBM Rational AppScan Standard Edition V7.7. FREE! Go There Now!
| | | | Join this Rational Talks to You teleconference on November 29 at 1:00 pm ET to participate in an interactive discusssion with Grady Booch around architecture and reuse. Get your questions answered! FREE! Go There Now!
| | | | Join this Rational Talks to You teleconference on December 6 at 1:00 pm ET to participate in an agile application development discussion and get your questions answered on using IBM Rational Method Composer in a distributed environment.Get your questions answered! FREE! Go There Now!
| | | | Discover how Rational tools and best practices for testing can make your job easier. The new Rational Testing eKits provide you with valuable resources – including demos, webcasts, tutorials, and articles – that help you address your specific testing needs across the software lifecycle. Five new eKits are available covering the topics of Requirements and Test Management, Functional Testing, Performance Testing, Code Quality and Embedded Systems, and SOA and Web Services Testing. FREE! Go There Now!
| | | | This paper is about the critical role that a discipline called integrated requirements management can play in helping to ensure that your business goals and IT investments are continuously aligned—whether you are sourcing, integrating, building or maintaining software. It also looks at ways that automated IBM Rational® products can work together to help you use requirements in the very best way. FREE! Go There Now!
| | | | Get a free trial download of the latest version of IBM Rational Functional Tester V7.0.1. Rational Functional Tester is an automated functional and regression testing solution for QA teams concerned with the quality of their Java, Microsoft Visual Studio .NET, and Web-based applications. FREE! Go There Now!
| | | | All FREE IBM® developerWorks Tools! | |
| | | | | | | |  | | | |