| ||||||||||||
![]() |
![]() |
| | LinkBack (1) | Thread Tools | Search this Thread | Display Modes |
(#1)
|
| 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 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... |
| | |
(#2)
|
(#3)
|
(#4)
|
(#5)
|
(#6)
|
| 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. Icon Headquarters - Its Elixir - Web2Messenger |
| | |
![]() |
| Tags |
| 2000, php, server, setup, windows |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
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 |