View Full Version : Installing PHP4 on IIS6.0
nuno
Wed 15th Jan '03, 10:01pm
Procedure (click the images for a full size version)
Download PHP from www.php.net, unzip it to c:\php.
Rename php.ini-recommended to php.ini and move it to C:\WINDOWS.
Move php4ts.dll to C:\WINDOWS\System32
GOTO Control Panel » Administrative Tools
Double click Internet Information Services (IIS) Manager
1)Click Web Service Extensions and select Add a New Web service extension
http://pwp.netcabo.pt/0231050901/IIS6/Step1s.gif (http://pwp.netcabo.pt/0231050901/IIS6/Step1.gif)
2)Add the path to php4isapi.dll
http://pwp.netcabo.pt/0231050901/IIS6/Step2s.gif (http://pwp.netcabo.pt/0231050901/IIS6/Step2.gif)
3)Check Set extension status
http://pwp.netcabo.pt/0231050901/IIS6/Step3s.gif (http://pwp.netcabo.pt/0231050901/IIS6/Step3.gif)
4)Right Click Default Web Site and go to Properties
http://pwp.netcabo.pt/0231050901/IIS6/Step4s.gif (http://pwp.netcabo.pt/0231050901/IIS6/Step4.gif)
5)Go to Home Directory tab and set Execute Permissions to Scripts and Executables
http://pwp.netcabo.pt/0231050901/IIS6/Step5s.gif (http://pwp.netcabo.pt/0231050901/IIS6/Step5.gif)
6)Click Configuration option » Add
http://pwp.netcabo.pt/0231050901/IIS6/Step6s.gif (http://pwp.netcabo.pt/0231050901/IIS6/Step6.gif)
7)Fill in exactly as shown
http://pwp.netcabo.pt/0231050901/IIS6/Step7s.gif (http://pwp.netcabo.pt/0231050901/IIS6/Step7.gif)
8)Goto command prompt
http://pwp.netcabo.pt/0231050901/IIS6/Step8s.gif (http://pwp.netcabo.pt/0231050901/IIS6/Step8.gif)
9)Restart IIS
http://pwp.netcabo.pt/0231050901/IIS6/Step9s.gif (http://pwp.netcabo.pt/0231050901/IIS6/Step9.gif)
All done. :=)
deciever
Sun 19th Jan '03, 4:32pm
thanks a lot, i finally got it working!
Im just wondering though, Since you seem like you know what you are doing, Do you know how to get IIS 6.0 to run CGI scripts as well..
for example. I have an ikonboard set up(going to convert to VBulletin/PHPbb, and im trying to get to the forum, but IIS wont let me run any CGI scripts. I've tried to install perl but im sure i screwed it up, and i set all the permissions to allow.
Any ideas?
Joe Gronlund
Fri 24th Jan '03, 1:11am
Originally posted by deciever
thanks a lot, i finally got it working!
Im just wondering though, Since you seem like you know what you are doing, Do you know how to get IIS 6.0 to run CGI scripts as well..
for example. I have an ikonboard set up(going to convert to VBulletin/PHPbb, and im trying to get to the forum, but IIS wont let me run any CGI scripts. I've tried to install perl but im sure i screwed it up, and i set all the permissions to allow.
Any ideas?
basically the same
install activeperl for windows
http://aspn.activestate.com/ASPN/Downloads/ActivePerl/Source
map CGI the same way nuno described above to the perl interpreter, with GET,HEAD,POST
Surfy
Mon 5th May '03, 8:01pm
Using IIS6 & PHP
I still get an error, when i try to start phpinfo.php..
Module not found....
Whats wrong? I tryed the newest php, and 4.22 too..
Surfy
k9underdog
Tue 13th May '03, 9:20am
I also get a permissions error (HTTP 401). I followed all the instructions but still get this :( Does anyone know what's wrong? Does anyone have this problem?
sn0n
Tue 10th Jun '03, 8:08pm
i also get the 401 error, wanting me to 'login' :-\
shawchyn
Thu 17th Jul '03, 11:01pm
How can I sure that the above configuration actually work?
Is there any way I can test the php setup is correctly done?
I get a HTTP500 Error on a index.php on the server.
Can help me on this issue?
Thanks
criscokid
Thu 24th Jul '03, 2:16pm
Have you given the system Internet Guest Account |USR_computername Read & Execute priveleges on the relevant directory where your www site is stored (such as wwwroot)?
ZMasterZ
Mon 28th Jul '03, 9:30pm
Have you given the system Internet Guest Account |USR_computername Read & Execute priveleges on the relevant directory where your www site is stored (such as wwwroot)?
:confused: Well, I'm using the same build as was shown nuno's screenshots (I thought it might be behaving differently because of the version) but, after making sure every directory, file (man, woman, and child) had Read/Execute priveledges on my IIS server, I can't get the booger to execute a PHP script.
I swear it shouldn't be this hard. What moronic thing am I missing?
ZMasterZ
criscokid
Tue 29th Jul '03, 5:16am
It's important to note that in Windows 2003, like Open BSD, everything is turned off / closed by default and you need to turn on services / open ports as you want/need them.
gjlowe
Tue 5th Aug '03, 4:06pm
I get the 500 error as well when I use the ISAPI dll, but when I use the CGI executable, it works fine. Any ideas there?
gicio
Thu 7th Aug '03, 8:59am
can someone post a complete installation guide to install vbulletin on Windows 2003 server?!?!!?!?
thx!
gicio
Steve Machol
Thu 7th Aug '03, 12:39pm
To get vB support on these forums you first need to register for Priority Forum Support. To do this, please click HERE (http://www.vbulletin.com/members/forums.php) and enter your email address in one of the boxes. You'll need to have your customer number and password to access the page. Thanks.
Daijoubu
Thu 7th Aug '03, 1:01pm
http://php.weblogs.com/fastcgi_with_php_and_iis :)
gicio
Thu 7th Aug '03, 3:46pm
I make all what nuno say.
but....
how I can configure SMTP to send email ....
for example to send "technical email" ???
gicio
Steve Machol
Thu 7th Aug '03, 3:51pm
Gicio, I've already asked toy this twice before. To get vB support on these forums you first need to register for Priority Forum Support. To do this, please click HERE and enter your email address in one of the boxes. You'll need to have your customer number and password to access the page.
This is my last request. Please do this immediately.
Gardell
Sat 6th Sep '03, 4:03pm
Im going crazy!!
I have tried out all possible ways to resolve this.. But nothing works, and this was'nt any better.
I drive a PHP forum on my server, http://www.sweleet.com , it is a index.php in the directory, but the server dont find it. http://www.sweleet.com/index.php error 404.. :confused: :confused: :confused:
But the server is working currectly if i for example chose a pic. http://www.sweleet.com/meny.gif
Pleeeeeease help me! :(
Shining Arcanine
Sat 6th Sep '03, 7:33pm
Take a good look at the directory security tab of your site's directory's properties in the System Management.
Steve Machol
Sat 6th Sep '03, 8:44pm
Gardell,
To get vB support on these forums you first need to register for Priority Forum Support. To do this, please click HERE (http://www.vbulletin.com/members/forums.php) and enter your email address in one of the boxes. You'll need to have your customer number and password to access the page. Thanks.
Gardell
Sun 7th Sep '03, 8:30am
ShiningArcanine,
Where do i find this? I found "Computer Management" but not system.
Steve Machol,
Ah, thanks. Where do i get that number?
Steve Machol
Sun 7th Sep '03, 11:54am
Steve Machol,
Ah, thanks. Where do i get that number?Did you purchase a vBulletin license? If so, then your use the customer number and password needed to access the Members Area.
Joe Gronlund
Sun 7th Sep '03, 11:59am
ShiningArcanine,
Where do i find this? I found "Computer Management" but not system.
Steve Machol,
Ah, thanks. Where do i get that number?
System applet is in control panel,, please enter your customer number as steve said for futher support..
Gardell
Sun 7th Sep '03, 1:09pm
Ah, I understand. I dont have/can afford a license. Thanks for the information.
neal007
Thu 25th Sep '03, 7:11pm
Nuno,
Thanks for the outstanding help! Whew! How do I do the ActivePerl though? Do I put in PL for the item like PHP, then what exact file do I point to? There's perl.exe, wperl.exe, another one with the version number on the suffix of it?
Thanks!
daluu
Sun 28th Sep '03, 7:57pm
Nuno & anyone else:
Seems some of you have worked with Windows 2003 (at least with IIS 6) and done well. the info on setting up PHP for that OS really helped. though this is sorta off topic of vBulletin stuff,
has anyone setup Terminal Server on Windows 2003? I got it setup but not working like it is supposed to, compared to Windows 2000. if anyone can help let me know. appreciate it.
neal007
Sun 28th Sep '03, 8:05pm
You don't need to / shouldn't be setting up terminal server, unless you are using it to host applications that clients are running. Instead, you should be installing the admin pack which is free from Microsoft's site. It connects via the remote connections which is configured on your network connection on the server (allow remote connections). It is a dream come true compared to previous versions, but you will need Windows XP (home or pro) or Windows 2003 to use the admin pack (probably because of theme support). Or, if you are using Windows 2003, you can use the Remote Connections in the Admin tools to connect to your server. I am so impressed with Windows 2003, it's a dream come true!
Ogden2k
Fri 13th Feb '04, 8:52pm
How do I install phpmyadmin?
Steve Machol
Fri 13th Feb '04, 11:23pm
Installing phpMyAdmin / Running a Query with phpMyAdmin:
http://www.vbulletin.com/forum/showthread.php?s=&threadid=18558
SDB
Wed 18th Feb '04, 3:38pm
Hi Guys
I'm really struggling with this. Followed all instructions, but getting authentication box followed by 401 not authorized.
IIS 6, 2003, php4isapi.dll
Additional Symptoms (just in-case they're helpful):
If I set the Identity tab setting to "Local System" and then try the page, enter admin username and password, the page loads.
If I set the indentity tab setting to "Network Service", or "Local Service" and then try the page, enter admin username and password, permission is denied.
ASP pages work perfectly on setting "Network Service" and does not ask for authentication at all. It only appears to be php pages.
--
I would be SO grateful if anyone can tell what I'm doing wrong.
Thanks in advance
Simon
SDB
Thu 19th Feb '04, 5:28am
Hi All
It seems as though I've solved the problem, but would like advice on whether this is the right thing to do for security.
I've given read and execute rights to the guest account on the php folder. As soon as I did that, everything started working.
All the best
Simon
robinchee
Tue 23rd Mar '04, 10:13am
My PHP only seems to work when I run www service in IIs 5.0 isolation mode. PHP 4.3.4 with Win 2003 server, IIs 6.0.
Any clues?
neal007
Tue 23rd Mar '04, 10:17am
http://www.vbulletin.com/forum/showthread.php?t=63223&highlight=Windows+2003
robinchee
Tue 23rd Mar '04, 10:56am
http://www.vbulletin.com/forum/showthread.php?t=63223&highlight=Windows+2003
As I said, I followed the steps, but it would only work in IIs 5.0 isolation mode. Once the isolation mode was unclicked, it would not work.
krohnathlonman
Tue 23rd Mar '04, 11:18am
same problems here :( Couldn't get PHP running properly with IIS so I threw apache on it, but I need to get back to IIS.
SentiBlue
Sun 14th Nov '04, 8:39pm
Hi guys....
I noticed that after PHP 502 installation on Windows 2003 the system tries to execute a VBS script (iisext.vbs) which Windows 2003 doesn't allow... Could this be why IIS is not configured correctly?
I did try to execute that file by allocating it to c:\windows\system32\cscript.exe which is the appropriate application to process VBS files... but still no effective results...
I have the exact same problem with the gentleman above... that is
http://mydomain.com/index.php does NOT work... but (Error 404)
http://mydomain.com/logo.gif works perfectly...
I did enable PHP extensions in IIS according to the screen shots... but still receive error 404...
SentiBlue
Sun 14th Nov '04, 9:32pm
Hi folks....
Leaning on the screenshots... if you use PHP 502... you need to add c:\php\php-cgi.exe instead of the DLL....
For me I got both of them in the list... and it worked perfectly... thanks all!
shawchyn
Sun 30th Jan '05, 1:30am
Does any one have the step by step illustration guide to install the PHP5.0 on IIS6.0?
Chia
H75
Tue 12th Apr '05, 12:16am
... All done. :=)great !!!! thank you for perfect install!! :D :D
diverdown
Tue 20th Dec '05, 8:02pm
I have been working on getting this to work for 3 weeks no go
Is there anybody here that can do it for a reasonable fee i got it working with apache but i need it to work with iis
George
Johnny Do
Mon 7th Aug '06, 3:08am
I made some instructions and notes regarding vB and IIS.
please direct yourself to: http://www.vbulletin.com/forum/showthread.php?t=194800
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.