Run PHP4 on Windows 2000 |   |
| | |  | ADVERTISEMENT
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! | |  | | |  |
PHP4 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%System32On a fresh install of Win2k the other required dll, msvcrt.dll is allreadythereand 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 guidelinesbelow.In Internet Servicices Manager,Expand the server you want, then right click on the WWW site you want PHP towork 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 bewherever 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 "Home Directory",Look around the "Application Settings" label. Around that area you will seea button labelled "Configuration". Click it!In the window that pops up, click add. In the executable field, tell itwhere the PHP4ISAPI.dll file is. (if you have v3, and not v4, point it tophp.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 generatethe 404, or PHP give users a "No Input File Specified".... I urge you chooseyes :)Click ok. You will need to repeat this step for each file extension you wantPHP to work with!You then need to completely stop IIS. You can do this by "net stop iissvc"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 servicesagain.Now make a page like page.php in the root of your site (of course replacethe .php with an extension that setup to work with PHP!), and just putsomething simple like
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 onIIS5/WIN2k, and IIS4/WinNT4Server.| 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 Patrick Quinn-Graham developerWorks - FREE Tools! | Learn to enable users to both rate existing animations and to combine existing animations into new snippets. This is the third in a series of three tutorials that chronicle the building of a site that enables collaborative discussion and animation building using Domino and OpenLaszlo. FREE! Go There Now!
| | | | Visit IBM developerWorks to download a free trial of the latest release of IBM Lotus Sametime Standard V8.0. Lotus Sametime Standard V8.0 is a platform for unified communications and collaboration that combines security features with an extensible, open solution including integrated Voice over IP, geographic location awareness, mobile clients, and a robust Business Partner community offering telephony and video integration. 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!
| | | | Join this webcast to see how IBM Data Studio Developer and pureQuery can take the pain out of Java data access. uApplications developed using both Java and SQL have become a common requirement. Database connectivity using Java Database Connectivity (JDBC) to create an application is a multi-step tedious process, and tooling that covers both SQL and Java has been unavailable, until now. IBM Data Studio introduces the pureQuery platform: a high-performance, Java data access platform focused on simplifying the tasks of developing, managing, and optimizing database applications and services. 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!
| | | | Get a free trial download of the latest version of IBM Rational Performance Tester V7.0.1, a load and performance testing solution for teams concerned about the scalability of their Web-based applications. Combining multiple ease-of-use features with granular detail, Rational Performance Tester simplifies the test-creation, load-generation and data-collection processes that help teams ensure the ability of their applications to accommodate required user loads. FREE! Go There Now!
| | | | You can now evaluate IBM Rational Asset Manager V7.0 online without installing or configuring it on your own system! Rational Asset Manager helps create, modify, govern, find, and reuse any type of development assets, including SOA and systems development assets. Rational Asset Manager helps you reduce software development costs and improve quality by facilitating the reuse of all types of software development-related assets. Visit developerWorks to learn more about this product and register to explore its capabilities online. 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!
| | | | Whether you are creating new applications or modifying existing ones, managing integration of new components with traditional z/OS elements is a critical part of building and deploying modern applications. Listen to this webcast to see how IBM can help you optimize your development process using an IDE like Rational Developer for System z that integrates with management tools, such as ClearCase to manage your application development on mainframes. FREE! Go There Now!
| | | | In this webcast, IBM Rational will discuss the importance of Web application security and will share techniques and best practices to introduce application security testing into current QA processes including: understanding common security vulnerabilities and techniques to integrate security testing with defect tracking and remediation systems in an effort to safeguard sensitive online information. FREE! Go There Now!
| | | | All FREE IBM® developerWorks Tools! | |
| | | | | | | |  | | | |