| 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! | <a href="http://zeus.developershed.com/shonuff.php?blackbird=3853&zoneid=442&source=&dest=http%3A%2F%2Fwww.ibm.com%2Fdeveloperworks%2Fspaces%2Fjazz%3FS_TACT%3D105AGY31%26S_CMP%3DDEVSHED&ismap="><img src="http://images.devshed.com/corp/img/news/jazz01.gif" alt="developerWorks Jazz space" align="left"></a>You've heard the buzz about Jazz... want to know more about it from a developer's perspective? Check out the Jazz space on developerWorks. This space is an up-to-date resource for developers, including technical information about Jazz and products built on Jazz, like Rational Team Concert Express. The Jazz space includes content from a wide variety of sources, including links, feeds, and comments from experts. FREE! Go There Now!
| | | | Attend this launch webcast with Scott Hebner, Vice President of IBM Rational Marketing and Strategy, for an overview of Rational’s new software offerings and resources to help modernize and accelerate software innovation on i on Power Systems – while ensuring past application investments are protected and continue to grow. Learn how these solutions are helping customers extend their core i5/OS solutions toward modern architectures such as SOA and web technologies to deliver business improvements that stand the test of time. FREE! Go There Now!
| | | | This whitepaper presents the benefits of successfully introducing static analysis into your organization using IBM Rational Software Analyzer. Additionally, it identifies some common pitfalls that can hinder the effective use of static analysis tooling as well as presents 10 simple strategies designed to help you quickly realize the value of static analysis using Rational Software Analyzer. FREE! Go There Now!
| | | | Poor Requirements Management capabilities in an Enterprise have been linked to excessive project failures, escalating IT costs, and failure to deliver competitive advantage into the marketplace. Join Brianna M Smith from IBM Rational and learn about how successful organizations align IT and Business stakeholders through collaborative processes and tools for effective requirements management, and how an integrated approach across the IT lifecycle can provide unparalleled visibility and traceability to ensure that project teams are delivering on the business vision by "doing the right things" and "doing things right." 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!
| | | | Learn how Rational Build Forge can extend a simple compile and package build process by adding customization and deployment capability. Go from a manual method to automating: checking for code changes; getting the latest source; compiling and packaging; customizing; copying to and restarting a deployment server; and sending e-mail notification that a new version is available. 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!
| | | | 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!
| | | | Join this Rational Talks to You teleconference, to hear how Enterprise Generation Language (EGL) eliminates the need for tedious and error-prone low level coding, so developers can focus on business requirements. EGL extends the Rational software development platform with a simplified programming language that enables developers who have little or no experience with Java, Web technologies or Service Oriented Architecture, to create enterprise-class applications and services quickly and easily. It also allows developers who may have little or no mainframe programming experience to quickly create traditional mainframe components. FREE! Go There Now!
| | | | Viper 2 brings a great value to developer communities including SQL, XML, PHP, Ruby, .NET and Java. You probably already know that DB2 Express-C is free for developers to develop, deploy and distribute. Viper 2 provides a variety of means that help move your application from the development stage to deployment more rapidly. This webcast shows how to best utilize the latest tools available for developing DB2 applications. FREE! Go There Now!
| | | | All FREE IBM® developerWorks Tools! | |