Exclusive Affiliate-Only Offer:
$9.99 Domain Names
Drive sales with one of the most aggressive domain offers out there: A domain and professional email account for only $9.99!
Install Php on IIS 6.0 Webserver running on Win Server 2003 64bit
Pag 1
Find more tutorials at
Installing PHP on windows 2003 64bit with IIS 6 isn't much dissimilar than
installing it on Win XP , except for few steps that we'll see in this
article. If you haven't
downloaded
PHP 5.2.6 zip package yet you can get it here
http://www.php.net/downloads.php
Please make sure to get the versions mentioned above, so the final
result will be positive 100%.
Steps to install PHP on IIS 6.0
Log on as
Administrator ,
The installation
is the same as for winXP so you can have a look at this page InstallingPHPonIIS.if
you need it.
The first difference is to start php as a Web Service Extension
from the IIS consolle,so open up the IIS Manager from
controlPanel > AdministrativeTools and,as you can see from the
picture below,click on WebServiceExtensions on the left
pane
Fig 1
Next click Add a new
WebServiceExtensions
and in the window like Fig 2
,type PHP Isapi in click extension name and click add
Fig 2
In the next dialog box ,browse to the
necessary php file which is C:\PHP5\php5isapi.dll ,where
C\:PHP5 is the folder where you installed PHP. then press OK.
Fig 3
Open NotePad or
any text editor and type <?php phpinfo(); ?>
Save it in C:\Inetpub\wwwroot as test.php not as text file
but all files or it wont work. Now it's all done, but if you
open up your browser and type http://localhost/test.php instead
of the PHP info page you'll get an error http 500 internal
server error.I scratched my head for a couple of hours before I
found the solution.
On the browser page click Tools >
InternetOptions > Advanced and uncheck the box
near Show friendly error messages and refresh the page.The figure below
is what you'll get and it simply means that the 32bit dll wont work in
the win2003 64bit system.
Fig 4
Now the fix.Open Command Prompt and navigate to
%SYSTEMDRIVE%\inetpub\adminscripts ,then
type cscript and finally type
adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64
1. This command should set Enable32bitAppOnWin64 metabase
property to True and obviously IIS will be configured to run in 32
bit mode and will be able to start serving the php pages.
Try to refresh the page or type http://localhost/test.php
and this time you should get the correct page as shown
below.Where,in the
environment section you can read
the path string which is the environment variable and many
useful informations.
Yes this command will configure the IIS6.0 to run 32 bit application but my one dotnet site is configured in 64 bit then how it will be run menas i want to run the 64 bit DOtnet site and 32 bit PHP site..possible...?