| This article was received from a verynice individual who wanted to share their thoughts about PHP and IIS.ASPfree.com or people involved who provide this information aren'tresponsible for anything that goes wrong by using this information. Ifthis blows up your Server, we aren't responsible. This involvesregistry changes and such (So make backups before doing changes!). It'svery detailed and if your not comfortable in doing this, leave thechanges up to your web-admin. This content is provided only because wehaven't seen too many other sites provide this type of information!Enjoy!! I am currently running PHP on Windows NT with IIS 4 installed. We use it on our Intranet server. I am also running MySQL database with IIS without any problems so far.
The following is an extract of the readme.txt file, which gives the correct procedure (located in the php directory). I followed the procedure, configured IIS the same way as you would for ASP and have been playing around without any hassle!
Basically you need to put your ini file (which you have to rename yourself into the correct directory for Win 95/98 or NT: (typicaly c:windows or c:winnt) <> rename the file php_iis_reg.inf for this
After that you need only to configure IIS. registry entries for PWS & IIS: HKEY_LOCAL_MACHINE:SystemCurrentControlSetServicesW3SvcParametersScri pt Map .php3 "c:php3php.exe %s %s"
*******************************************************************
If you have used the setup program, and have IIS or PWS, you are almost ready to go. You must first decide which directories in your web server will contain php scripts, and make those directories executable. You will need to manualy edit configurations for other web servers. Otherwise, you can follow the instructions below for installation. ---------------------------------------------------------------------- An INF file (php_iis_reg.inf) has been included that will automaticaly add registry settings for IIS 3 and PWS.
registry entries for PWS & IIS: HKEY_LOCAL_MACHINE:SystemCurrentControlSetServicesW3SvcParametersScri pt Map .php3 "c:php3php.exe %s %s"
As more server specific information is gathered, more registry entries may be added.
NOTE: I have not been able to get php to work correctly with PWS 4 ---------------------------------------------------------------------- INSTALLATION
Make a directory, such as c:php3, and place all the rest of the dlls there.
If you are not using Apache NT server, you can set an environment variable in your autoexec.bat file, add this line:
SET PHPRC=windowsphp3.ini
and place your php3.ini file in whatever directory you specify. Otherwise, be sure to place php3.ini in your os directory (typicaly c:windows or c:winnt).
msql1.dll, calendar.dll and msql2.dll must be located in the same directory as php3.exe, or you must specify where these files are located either in your php3.ini file, or in the php3 script.
Notes on IIS4 -------------------- Start Internet Service Manager Right click on the website you are installing php in Select properties Click on the TAB "Home Directory" Select 'Script' under permisions Click on button 'Configuration' Click on button 'Add' Executable should be c:php3php.exe %s %s (Yes, TWO %s's acording to M$ docs) Extension .php (or whatever you use) Check 'Script Engine' Click on OK Click on OK again. Stop then Start the web server. PHP should now work. If it doesn't verify the 'everyone' has full access to the directory c:php3 and everything within it.
Try running a simple script such as <? phpinfo(); ?>
*********************************************************************
Hope this was what you were looking for.
Kind regards,
Mari mari@dchip.com |
| 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! | Learn field-tested SOA principles, methodology, technology and implementation from the global SOA market leader - in a new e-book by an IBM SOA expert. Written by IBM Certified SOA Solution Designer Bobby Woolf, "Exploring IBM SOA Technology & Practice" is the ultimate insider's guide to SOA - a PDF e-book packed cover to cover with IBM's specific advice on how to make your SOA implementation a success. FREE! Go There Now!
| | | | Learn how you can extend modern application lifecycle management to IBM System z through the IBM Rational Software Delivery Platform (SDP). The Did you say mainframe? e-kit includes podcasts, webcasts, tutorials, white and red papers, demos, and articles designed to help ease the challenges of modernizing your enterprise. This complimentary kit for mainframe developers is a practical, how-to guide for making the most of an existing development environment, including the skills and infrastructure already in place at an established enterprise. FREE! Go There Now!
| | | | Download the Rational Application Developer (RAD) v7.5 open beta code and start developing applications for the JEE5 standard which features EJB3.0, JPA, JSF 1.2, JSP 2.1 and Servlet 2.5 standards. When you use this beta you will see how you can increase developer productivity for already existing applications with improved support for refactoring, as well as adding new features to existing applications. In addition, the beta provides tooling for JD Edwards, Oracle, SAP, Siebel and PeopleSoft to improve the developer productivity with these enterprise systems. 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!
| | | | In this tutorial, you can learn how to install and configure the IBM Rational Asset Manager Eclipse client, explore the different views in the Asset Management perspective, learn various search techniques, work with existing assets, and submit a new asset. FREE! Go There Now!
| | | | Rational Build Forge Express Edition is an automation framework that packages the latest enterprise-grade technologies into a reliable, flexible and robust configuration designed and priced specifically for small to midsize businesses. The new Rational Build Forge Express eKit provides you with valuable resources – including a case study, podcast, demo, and articles – to help you increase staff productivity, compress development cycles and deliver better software, fast. FREE! Go There Now!
| | | | This whitepaper provides areas to consider when evaluating any software configuration management solution. It addresses how the IBM solutions (Rational ClearCase and Rational ClearQuest) meet the needs and requirements of both project leaders and developers to provide successful Software Change and Configuration Management. 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!
| | | | 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!
| | | | User communities play an important role in communication and collaboration around products, solutions and other areas of special interest to members. Successful communities are able to provide the right mix of content and services to deliver a value proposition that resonates with each audience. Join Tom Inman, VP of Marketing for Information and Platform Solutions as he introduces the new LeverageINFORMATION community. During this webcast, learn about the value provided by the community and how customers and partners derive value from the community in addressing their own technical and business challenges. FREE! Go There Now!
| | | | All FREE IBM® developerWorks Tools! | |