Page 1 of 1

Installing php on IIS

Posted: Thu Oct 14, 2004 8:05 am
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?

Posted: Thu Oct 14, 2004 10:13 am
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

Posted: Thu Oct 14, 2004 12:36 pm
by Joe
PHP offers a win32 installer which configures IIS webservers to be compatible with PHP AFAIK.

Posted: Fri Oct 15, 2004 3:00 am
by twigletmac
Does localhost definitely point to C:\inetpub\wwwroot ? If you have a plain HTML page in that directory does it appear?

Mac

Posted: Fri Oct 15, 2004 5:01 am
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

Posted: Fri Oct 15, 2004 6:27 am
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

Posted: Fri Oct 15, 2004 9:29 pm
by Stanza
Thanks for the reply guys, I'll check it out !

Posted: Thu Oct 21, 2004 7:23 am
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?

Posted: Thu Oct 21, 2004 5:37 pm
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).

Posted: Mon Nov 01, 2004 5:12 am
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?