Installing php on IIS

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Stanza
Forum Newbie
Posts: 5
Joined: Thu Oct 14, 2004 7:55 am
Location: Sydney, Australia

Installing php on IIS

Post by Stanza »

Hi,

Okay now I’m a complete newbie to all this.
I’ve downloaded the binary files for Win 32 and I’m trying to install it on Windows 2000 using IIS.
I’ve copied the file php4isapi.dll from the sapi/ directory to the WINNT/system directory. I also copied the file php.ini-dist to the same directory and renamed it php.ini.
Next, I went to Administrative Tools > Internet Services Manager > Default Web Site > Properties > ISAPI Filters
I clicked on Add and then used php as the name and in the path I put the location of php4isapi.dll, which should be C:\WINNT\system\
Under the Home tab I clicked on Configuration then Add for Application Mappings. I used the same location for the ISAPI Filters tab and used .php as the extension
I stopped and started the Web Service and then created a simple script called test.php and put the following code:

<?php
phpinfo();
?>

I saved this under C:\inetpub\wwwroot and I tried testing this in my browser but I got “Page cannot be displayed”

I’m tried everything and redid some of the steps but no joy. What could be wrong?
Stanza
Forum Newbie
Posts: 5
Joined: Thu Oct 14, 2004 7:55 am
Location: Sydney, Australia

Post by Stanza »

Sorry, looks like I've posted this in the wrong forum. Can some Mod kindly move this thread to the correct place?

Thanks in advance
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

PHP offers a win32 installer which configures IIS webservers to be compatible with PHP AFAIK.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Does localhost definitely point to C:\inetpub\wwwroot ? If you have a plain HTML page in that directory does it appear?

Mac
muppet
Forum Newbie
Posts: 22
Joined: Sun Jan 25, 2004 2:01 pm

Post by muppet »

Being a newbie as well I used this http://www.php.net/manual/en/install.wi ... .installer

log and falling off sprang to mind when I tried it......

:D
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

The Windows installer is fine to a point but it is useful to know how to fully install PHP plus you don't get any of the extensions (e.g. GD) with it.

Mac
Stanza
Forum Newbie
Posts: 5
Joined: Thu Oct 14, 2004 7:55 am
Location: Sydney, Australia

Post by Stanza »

Thanks for the reply guys, I'll check it out !
Stanza
Forum Newbie
Posts: 5
Joined: Thu Oct 14, 2004 7:55 am
Location: Sydney, Australia

Post by Stanza »

Ok now i've installed php on my machine

I want to install the phpbb software also.
I get to the installtion page and I fill in all the details but when I click on Install get the following:

Code: Select all

Warning: mysql_connect(): Access denied for user 'MyFirstForum'@'localhost' (using password: YES) in c:\inetpub\wwwroot\forum\db\mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in c:\inetpub\wwwroot\forum\db\mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in c:\inetpub\wwwroot\forum\db\mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database
Do I have to manually create the DB in SQL?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the user and passwords you supply must exist on the database server. phpBB does not create database users. A tool like phpMyAdmin can create the user(s).
Stanza
Forum Newbie
Posts: 5
Joined: Thu Oct 14, 2004 7:55 am
Location: Sydney, Australia

Post by Stanza »

I rebooted my comp and now when I try to run C:\inetpub\wwwroot\test.ph I just get a blank page!!

What the hell's going on here?
Post Reply