Code Examples
  Home arrow Code Examples arrow Configuring PHP on IIS Guidelines
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
CODE EXAMPLES

Configuring PHP on IIS Guidelines
By: aspfree
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 10
    2000-01-18

    Table of Contents:

    Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    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

     

    IBM® developerWorks developerWorks - FREE Tools!


    Check out the new Jazz space on developerWorks

    <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!


    NEW! Accelerating Software Innovation on i on Power Systems

    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!


    NEW! Best practices for software analysis: An introduction to the IBM Rational Software Analyzer application

    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!


    NEW! Best Practices in Integrated Requirements Management

    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!


    NEW! Hello World: Learn how to install and use the Rational Asset Manager Eclipse client

    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!


    NEW! Improve your build process with IBM Rational Build Forge, Part 2: Automate builds for a real-world Tomcat project

    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!


    NEW! Rational Build Forge Express eKit

    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!


    NEW! Trial download: IBM Rational Performance Tester V7.0.1

    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!


    NEW! Using Rational Business Developer to enhance your developer productivity

    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!


    NEW! Webcast: What is new in Viper 2 for developers?

    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!

    CODE EXAMPLES ARTICLES

    - Bipartite Graphs
    - Connectivity in Graphs
    - The Ford-Fulkerson Algorithm
    - Critical Paths
    - The Bellman-Ford and Roy-Floyd Algorithms
    - Shortest Path Algorithms in Graphs
    - Minimum Spanning Tree
    - Articulation Edges and Vertexes
    - Circles and Connectivity in Graphs
    - Depth-First Search in Graphs
    - Breadth-First Search in Graphs
    - The Prufer Code and the Floyd-Warshall Algor...
    - An Insight into Graphs
    - Coding a Custom Object with WSC
    - Creating a Custom Object with WSC





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    Stay green...Green IT