Author |
Topic  |
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 14 March 2003 : 11:53:00
|
Is there any plug-in/add on/what-not i can use with IIS to allow the use of PHP? |
De Priofundus Calmo Ad Te Damine |
Edited by - PeeWee.Inc on 14 March 2003 12:21:15 |
|
spyordie007
Junior Member
 
USA
408 Posts |
Posted - 14 March 2003 : 11:54:27
|
yes, the setup info is in the readme or install files that come with PHP |
Power - The only narcotic controlled by the SEC, not the FDA.
Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum |
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 14 March 2003 : 11:55:54
|
Come with PHP? where do i get that from? Right now all i have is a PHP forum and ISS....    |
De Priofundus Calmo Ad Te Damine |
 |
|
Hamlin
Advanced Member
    
United Kingdom
2386 Posts |
Posted - 14 March 2003 : 11:58:28
|
I guess http://www.php.net/downloads.php would be a good start, the PHP 4.3.1 installer looks like it may be what you want...
quote:
PHP 4.3.1 installer [1,028Kb] - 17 February 2003 (CGI only, MySQL support built-in, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included)
|
Edited by - Hamlin on 14 March 2003 11:59:48 |
 |
|
spyordie007
Junior Member
 
USA
408 Posts |
Posted - 14 March 2003 : 11:59:00
|
here we go: http://www.php.net/manual/en/install.iis.php
quote: In either case, you need to start the Microsoft Management Console (may appear as 'Internet Services Manager', either in your Windows NT 4.0 Option Pack branch or the Control Panel=>Administrative Tools under Windows 2000/XP). Then right click on your Web server node (this will most probably appear as 'Default Web Server'), and select 'Properties'.
If you want to use the CGI binary, do the following:
Under 'Home Directory', 'Virtual Directory', or 'Directory', click on the 'Configuration' button, and then enter the App Mappings tab.
Click Add, and in the Executable box, type: c:\php\php.exe (assuming that you have unziped PHP in c:\php\).
In the Extension box, type the file name extension you want associated with PHP scripts. Leave 'Method exclusions' blank, and check the Script engine checkbox. You may also like to check the 'check that file exists' box - for a small performance penalty, IIS (or PWS) will check that the script file exists and sort out authentication before firing up php. This means that you will get sensible 404 style error messages instead of cgi errors complaining that php did not output any data. You must start over from the previous step for each extension you want associated with PHP scripts. .php and .phtml are common, although .php3 may be required for legacy applications.
Set up the appropriate security. (This is done in Internet Service Manager), and if your NT Server uses NTFS file system, add execute rights for I_USR_ to the directory that contains php.exe.
To use the ISAPI module, do the following:
If you don't want to perform HTTP Authentication using PHP, you can (and should) skip this step. Under ISAPI Filters, add a new ISAPI filter. Use PHP as the filter name, and supply a path to the php4isapi.dll.
Under 'Home Directory', click on the 'Configuration' button. Add a new entry to the Application Mappings. Use the path to the php4isapi.dll as the Executable, supply .php as the extension, leave Method exclusions blank, and check the Script engine checkbox.
Stop IIS completely (NET STOP iisadmin)
Start IIS again (NET START w3svc)
-Spy |
Power - The only narcotic controlled by the SEC, not the FDA.
Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum |
Edited by - spyordie007 on 14 March 2003 11:59:52 |
 |
|
spyordie007
Junior Member
 
USA
408 Posts |
Posted - 14 March 2003 : 12:01:24
|
quote: Originally posted by Hamlin
I guess http://www.php.net/downloads.php would be a good start, the PHP 4.3.1 installer looks like it may be what you want...
quote:
PHP 4.3.1 installer [1,028Kb] - 17 February 2003 (CGI only, MySQL support built-in, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included)
I've done several PHP installs on Windows boxes and I've never been able to get it to setup IIS automatically, I've always had to set it up manually as listed in their documentation. It's a good thing they package this in the install documentation that comes with it because otherwise I would have been very lost!
-Spy |
Power - The only narcotic controlled by the SEC, not the FDA.
Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum |
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 14 March 2003 : 12:04:13
|
quote: Originally posted by Hamlin
I guess http://www.php.net/downloads.php would be a good start, the PHP 4.3.1 installer looks like it may be what you want...
quote:
PHP 4.3.1 installer [1,028Kb] - 17 February 2003 (CGI only, MySQL support built-in, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included)
I - AM - STOOOOOOOOOOOPID
  |
De Priofundus Calmo Ad Te Damine |
 |
|
spyordie007
Junior Member
 
USA
408 Posts |
Posted - 14 March 2003 : 12:08:07
|
quote: I - AM - STOOOOOOOOOOOPID
this is how I feel when I make most of my posts here, there are tons of people on this forum that know ASP like the back of their hand. Out of the scripting languages I periodically work with (ASP, PHP, and CFM) I probably know the least about ASP so I'm always very cautious, some of you guys just zip right through it and I feel like I'm sooo slooowww.
-Spy |
Power - The only narcotic controlled by the SEC, not the FDA.
Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum |
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 14 March 2003 : 12:39:07
|
I cant make head-nore tall of installing this  |
De Priofundus Calmo Ad Te Damine |
 |
|
spyordie007
Junior Member
 
USA
408 Posts |
Posted - 14 March 2003 : 12:59:27
|
give me 15-20 min. and I'll post a step by step version with screen shots
-Spy |
Power - The only narcotic controlled by the SEC, not the FDA.
Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum |
 |
|
spyordie007
Junior Member
 
USA
408 Posts |
Posted - 14 March 2003 : 13:11:28
|
quote: In either case, you need to start the Microsoft Management Console (may appear as 'Internet Services Manager', either in your Windows NT 4.0 Option Pack branch or the Control Panel=>Administrative Tools under Windows 2000/XP). Then right click on your Web server node (this will most probably appear as 'Default Web Server'), and select 'Properties'. If you want to use the CGI binary, do the following: Under 'Home Directory', 'Virtual Directory', or 'Directory', click on the 'Configuration' button, and then enter the App Mappings tab. Click Add, and in the Executable box, type: c:\php\php.exe (assuming that you have unziped PHP in c:\php\). In the Extension box, type the file name extension you want associated with PHP scripts. Leave 'Method exclusions' blank, and check the Script engine checkbox. You may also like to check the 'check that file exists' box - for a small performance penalty, IIS (or PWS) will check that the script file exists and sort out authentication before firing up php. This means that you will get sensible 404 style error messages instead of cgi errors complaining that php did not output any data. You must start over from the previous step for each extension you want associated with PHP scripts. .php and .phtml are common, although .php3 may be required for legacy applications. Set up the appropriate security. (This is done in Internet Service Manager), and if your NT Server uses NTFS file system, add execute rights for I_USR_ to the directory that contains php.exe.
This is how I have it setup on my PHP server, here is a "step-by-step" version (note that the screen shots are from my windows XP box that I’m on now and it doesn’t actually have PHP installed (I’m just using it to point you to where you need to be):
1.) right-click on "my computer" and click on manage 2.) expand "services and applications" 3.) expand "internet and information services"

2.) right click on your website and click on properties (if you are running xp like my screen shot you will have to first expand "web sites")

4.) go to the "home directory tab"

5.) click on "configuration"

6.) on the mapping tab click on "add" 7.) in the dialog that appears specify the location of the PHP exe and specify the extension of the pages you want to have PHP process (I'm assuming that you want PHP) and make sure you have the rest just like my screen shot.

8.) click okay and restart IIS: from the command prompt type- NET STOP iisadmin NET START w3svc (assuming you know how to use the command prompt so skipping a screen shot of that). 9.) put a PHP page in your website and direct a browser to it's url, if you've installed it correctly the page should get processed rather than just displaying the code
Let me know if you have any problems!
-Spy
|
Power - The only narcotic controlled by the SEC, not the FDA.
Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum |
Edited by - spyordie007 on 14 March 2003 13:13:03 |
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 14 March 2003 : 13:44:03
|
Still just showing the code: http://217.44.235.53/forum/test.php
I'll just have to sort it 2moro (as it's friday night )
You have a nice desktop thingy btw  |
De Priofundus Calmo Ad Te Damine |
 |
|
spyordie007
Junior Member
 
USA
408 Posts |
Posted - 14 March 2003 : 13:46:27
|
man I'm sorry I forgot a couple of little and really important parts
1. you have to copy php.ini into the %system root% folder and edit it. There should be one line you have to edit before it will work with IIS
2. make sure that your default user for IIS has read/execute rights to php.exe (in most cases "IUSR_%computer name%").
-Spy |
Power - The only narcotic controlled by the SEC, not the FDA.
Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum |
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 14 March 2003 : 13:51:41
|
I dont have a php.ini file, can you send me yours via e-mail? Krisharwood@hotmail.com |
De Priofundus Calmo Ad Te Damine |
 |
|
spyordie007
Junior Member
 
USA
408 Posts |
Posted - 14 March 2003 : 14:04:11
|
Sent, mine is setup for php.exe to be located at c:\php\php.exe and should work with IIS if you just copy it into your c:\winnt\ directory (again assuming that is the location of windows).
also make sure that your NTFS permissons for php.exe allow the IUSER read/execute rights
-Spy |
Power - The only narcotic controlled by the SEC, not the FDA.
Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum |
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 14 March 2003 : 14:07:54
|
I dropped it in my c:/windows/ dir and now it is promting me to download the .PHP page, i shal;l have to test it to see if it is now workin |
De Priofundus Calmo Ad Te Damine |
 |
|
Topic  |
|