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: 5 stars5 stars5 stars5 stars5 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!


    NEW! Driving Business Success with Rational Process Library

    Join this webcast, to learn how the Rational Process Library can help with compliance issues, drive process improvement, and assist in service-oriented architecture (SOA) or Agile development. We will take a peek into the Rational Process Library with content around software and systems engineering (including RUP), operations and systems management, program and portfolio management, and asset and SOA governance.
    FREE! Go There Now!


    NEW! Applying lean thinking to the governance of software development

    Effective governance for lean development isn’t about command and control. Instead, the focus is on enabling the right behaviors and practices through collaborative and supportive techniques. Hear from Scott Ambler on how it is far more effective to motivate people to do the right thing than it is to force them to do so. Learn how to form a lightweight, collaboration-based framework that reflects the realities of modern IT organizations.
    FREE! Go There Now!


    NEW! Did you say mainframe? e-kit

    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!


    NEW! Project and Portfolio Management Executive Resource Kit

    Portfolio Management is about effectively managing portfolio value by aligning portfolio investments with business goals. This complimentary e-kit provides a collection of materials that can help you understand how IBM Rational enables and automates best practices for improved governance and clear visibility into portfolio and project performance across the entire IT project lifecycle.
    FREE! Go There Now!


    NEW! Rational 'Talks to You' Teleconference Series

    This Fall, IBM Rational talks to you directly through a special teleconference series giving you access to the best minds in IBM Rational - product experts and market thought leaders who will answer your questions during these pre-scheduled telephone conference calls. Register today!
    FREE! Go There Now!


    NEW! Rational Asset Manager eKit

    Learn how to do more with your reusable assets with the free Rational Asset Manager eKit. The eKit includes demos on how Rational Asset Manager tracks and audits your assets in order to utilize them for reuse. Plus you’ll find white papers and a Webcast that discuss the challenges of a Service Oriented Architecture and how Rational Asset Manager can provide quick and effective solutions.
    FREE! Go There Now!


    NEW! Successful Change and Release Management for .NET

    Join this webcast to discover the key requirements for successful change and release management. Learn how to extend your .NET environment to improve productivity and collaboration, and address core problems afflicting team development. In this webcast, we’ll review typical challenges faced by customers and how to resolve them with the IBM Rational Change and Release Management solution, including Rational ClearCase, Rational ClearQuest and Rational Build Forge. Replay is available for 9 months.
    FREE! Go There Now!


    NEW! The role of integrated requirements management in software delivery

    This paper is about the critical role that a discipline called integrated require­ments management can play in helping to ensure that your business goals and IT investments are continuously aligned—whether you are sourcing, integrat­ing, 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!


    NEW! Understanding Web application security challenges

    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!


    NEW! Webcast: Extreme transaction processing with WebSphere Extended Deployment

    In this webcast, you'll get an introduction to the eXtreme Transaction Processing (XTP) features of WebSphere Extended Deployment and the common architectural traits required by XTP applications. See how WebSphere Extended Deployment's ObjectGrid feature provides a state-of-the-art infrastructure for hosting XTP 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-2010 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek