Configuring PHP on IIS Guidelines

Contributed by
Rating: 5 stars5 stars5 stars5 stars5 stars / 11
January 18, 2000
Rate this Article:
MEH MEH++


SEARCH ASP FREE
TOOLS YOU CAN USE

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

blog comments powered by Disqus
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

ASP Web Hosting ASP.Net Web Hosting Windows Web Hosting
 
 
 

ASP Free Forums 
 RSS  Tutorials RSS
 RSS  Forums RSS
 RSS  All Feeds
Site Map 
Request Media Kit
Write For Us Get Paid 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Privacy Policy 
Support 


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap
Most Popular Topics
All ASP.Net Tutorials