Kayako logo
Technical Chat From server configurations to local area networking - the technical discussion forum.

Reply
 
LinkBack (1) Thread Tools Search this Thread Display Modes
  1 links from elsewhere to this Post. Click to view. (#1) Old
netFusion Offline
Member
 
Posts: 393
Join Date: Sep 2003
Location: My wife calls it the doghouse...
Setup PHP on a Windows 2000 server - 20-07-2005, 06:19 AM

Since a lot of people are having trouble getting SupportSuite running on Windows servers, here is a quick and ditry instruction sheet I put together for setting up PHP on Windows.

Note that as of today's date, I have been unable to get SupportSuite working with PHP in CGI mode on Windows 2000. The last paragraph below tells you how to switch from CGI to ISAPI if you are running Windows 2000 as your platform.

--------------------------------------------

I am making an assumption here that you have PHP installed on your C: drive in a folder called C:\PHP\. If not, change these instructions accordingly to match your PHP drive and path.

If you have trouble with your PHP.INI settings, see my other post on how I have mine configured to help give you a start.

Now, the easiest thing to do is put all of the necessary files into one folder. PHP seems to be kind of quirky when loading files in subfolders. It seems to be resolved if they are all in a folder that can be found in the search path.

So, copy the files from the following folders into C:\PHP\. Note that I said COPY and not move.

C:\PHP\EXTENSIONS\
C:\PHP\DLLS\
C:\PHP\SAPI\

Yes, copy them ALL into the C:\PHP\ folder so that they can all be found in the search path.


Now, find the user that runs your web site.
1. Log into the server as an administrator.
2. Right click on My computer, left click on manage.
3. Expand Services and Applications
4. Expand Internet Information Services
5. Right click on "YourDomain.com", left click on properties.
6. Left click on the "Directory Security" tab.
7. Under "Anonymous access and authentication control", click on the "Edit" button.
8. To the right of "Account used for anonymous access", click on the "Edit" button.
9. Make note of the "Username" that is listed.
10. Click Cancel, Cancel, and Cancel again to get back out.


That website user needs security permissions in a couple of places.
1. Give that user Read, Write, List, Read & Excecute, and Modify to the C:\TEMP\ folder.
2. Give that user Read, List, and Read & Excecute to the C:\PHP\ folder.
3. Give that user Read, List, and Read & Excecute to the C:\WINDOWS\PHP.INI file. (Make sure you select the file and not the whole Windows folder here.)


Add the PHP folder to the search path.
1. Log into the server as an administrator.
2. Right click on My computer, left click on properties.
3. Left click on the "Advanced" tab.
4. Left click on the "Environment Variables" button.
5. Under "System variables" double click on the "Path" variable.
6. In the "Variable Value" field, go all the way to the right and add ";C:\PHP\" to the end. Note the ";" DOES need to be there.
7. Click on OK, then on OK, then on OK again to get back out.


This is how you set the website to use PHP as CGI.
1. Log into the server as an administrator.
2. Right click on My computer, left click on manage.
3. Expand Services and Applications
4. Expand Internet Information Services
5. Right click on "YourDomain.com", left click on properties.
6. Left click on the Home Directory tab.
7. Left click on the Configuration button.
8. Look in the Application Mappings window for a line that shows .php under the Extension.
9. If there is one, highlite it and click Edit. If there is not one, click Add.
10. In the Executable field, enter "C:\PHP\php.exe". If you do NOT have php installed to C:\PHP, put in your path to it.
11. In the Extension field, enter .php notice the "." in front of it.
12. Verbs, set to "All verbs".
13. Check the boxes for "Script Engine" and "Check that file exists"
14. Left click on OK,then Left click on OK again.
15. Left click on the "ISAPI Filters" tab.
16. If there is one listed for PHP, highlite it and click Remove.
17. Left click on OK, then Left click on OK again to close the properties for the web site.


To change from CGI to ISAPI:
1. Log into the server as an administrator.
2. Right click on My computer, left click on manage.
3. Expand Services and Applications
4. Expand Internet Information Services
5. Right click on "YourDomain.com", left click on properties.
6. Left click on the Home Directory tab.
7. Left click on the Configuration button.
8. Look in the Application Mappings window for a line that shows .php under the Extension.
9. If there is one, highlite it and click Edit. If there is not one, click Add.
10. In the Executable field, enter "C:\PHP\php4isapi.dll". If you do NOT have php installed to C:\PHP, put in your path to it.
11. In the Extension field, enter .php notice the "." in front of it.
12. Verbs, set to "All verbs".
13. Check the boxes for "Script Engine" and "Check that file exists"
14. Left click on OK,then Left click on OK again.
15. Left click on the "ISAPI Filters" tab.
16. Notice this screen. This is where you can tell if the ISAPI is loaded after you reset IIS. Green arrow means loaded, Red arrow means it is not.
17. If there is one listed for PHP, highlite it and click Edit. If there is not one, click Add.
18. Give it a filter name of PHP.
19. In the Executable field, enter "C:\PHP\php4isapi.dll". If you do NOT have php installed to C:\PHP, put in your path to it.
20. Left click on OK, then Left click on OK again to close the properties for the web site.

To go back to cgi, line 10 would b C:\PHP\php.exe and remove the ISAPI Filter defined on line 19.

If you find mistakes or typos, please let me know. You can track me down at my website www.netfusionkc.com or via email.

Hope it helps!

Eddie


netFusion Computer and Network Solutions
Web Site: http://www.netFusionKC.com
Web Store: https://www.netfusionkc.com/store/

Anything I say or do is my own opinion and may make absolutely no sense to anyone but me...

Last edited by netFusion; 02-02-2006 at 04:25 AM.
   
Reply With Quote
  (#2) Old
TheDoctor Offline
Community Moderator
Kayako Doctor
 
Posts: 171
Join Date: May 2004
Location: UK
20-07-2005, 11:46 AM

Eddie,

Great guide there, which will be a useful resource for people.

Have made this sticky

Regards
Alan

Last edited by TheDoctor; 20-07-2005 at 11:58 AM.
   
Reply With Quote
  (#3) Old
Bluedevil Offline
New Member
 
Bluedevil's Avatar
 
Posts: 1
Join Date: May 2007
Noobie to PHP - 10-05-2007, 07:33 PM

Eddie, thank you for the great directions! I do however have a few issues. my ISAPI filter is in a down state and I do not know how to get it to a green state.
Also I am installing the newest version of PHP, I used the Binary unstall, it looks like the new version does not have

C:\PHP\DLLS
C:\SAPI folders

I dod how ever copy all the files from the C:\PHP\ext folder to the root of PHP.
I'm sorry to ask for help it sounds easy, but I am not a software guy. Please any help would be great! thanks.
   
Reply With Quote
  (#4) Old
debug Offline
New Member
 
Posts: 1
Join Date: Aug 2007
18-08-2007, 06:50 AM

Eddie, thank you !Great guide

--
Eric

Last edited by Jamie Edwards; 18-08-2007 at 11:33 AM.
   
Reply With Quote
  (#5) Old
webmidas Offline
New Member
 
Posts: 4
Join Date: Sep 2007
03-10-2007, 08:15 AM

I am on windows 2003 server.server currently supports aspx, i followed all the steps and everything worked fine. when i type in the url of the php file, a new box pops up and it says me to save the file,after i save the file the screen is blank.
Does you utorial work with MS windows server 2003?


Live life to the fullest and love everybody
Host your site with web hosting india company
   
Reply With Quote
  (#6) Old
craigbrass Offline
Senior Member
 
Posts: 5,328
Join Date: Jun 2005
Location: Cumbria, UK
03-10-2007, 09:01 AM

That means PHP isn't installed properly. Try redoing it according to the instructions.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
Reply

Tags
2000, php, server, setup, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://forums.kayako.com/f74/setup-php-windows-2000-server-4066/
Posted By For Type Date
help setting up PHP on win2000 server This thread Refback 12-02-2008 01:56 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Install on a Windows Server 2003... extremly confusing Solenoid Installation & Upgrading 40 26-06-2007 10:11 AM
Syncworks installation problems jenglish SyncWorks 10 29-03-2007 05:01 PM
URL to connect to my server during trial ozzee LiveResponse Desktop Application 10 22-01-2007 04:20 PM
connection problem inteltechs InstaAlert 5 27-04-2006 12:23 AM
Need Help Installing MySQL & PHP on Windows 2003 with IIS 6 sjvtech Installation & Upgrading 3 20-04-2006 01:17 AM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46