Trading Applications Developer (IL)
Next Step Systems
US-IL-Chicago

Justtechjobs.com Post A Job | Post A Resume

Using Windows and Apache to develop PHP3
One of the most commonly asked questions on the PHP3 mailing list is "How do I set up PHP on my Windows machine?" Well, hopefully, I can help answer this question. When done properly, using Windows to develop PHP3 sites can be very advantageous. This tutorial is meant to show you how to use Apache and Windows for developing. It in no way tries to show how to set up a production web server using Windows and Apache.
Installing Apache
First you need a web server. I recommend Apache. I know they say it is not entirely stable on Windows, but really what Windows app is? It is the easiest to set up and can do some neat things with virtual directories to make your life easier. So, go to http://www.apache.org/dist/ and get the latest Win32 build. There is a link at the top of the page for world wide mirrors. Mirrors are good, use them. The file will be called something like apache_1_3_6_win32.exe. Download that and run it. Apache has done a good job on their installation. It is very easy. It will ask you for an install directory. don't make it too hard to get to, because you will want to play with your configuration files and drilling down through 5 folders is no fun. For this example, I will use 'c:\apache'. Assuming you get no errors during install, Apache is probably ready. You will want to read the readme files. There are several. There is one for Win32 specifically which is somewhat misnamed readme-NT.txt. It applies to both Windows 9* and NT.
Installing PHP3
Ok, if you search the PHP3 mailing list on this you may get confused. First you need to install the latest PHP for windows. If you want you can compile PHP on windows, but I will not cover that as it is not necessary for a simple development workstation. Go to your favorite PHP mirror and go to the downloads section. Select 'Source code and Windows distribution'. The direct URL is http://your.mirror/download-php.php3. Download the 'Windows binary'. It is my understanding that the PHP3 guys are working on a better install. However, for now you will have to simply unzip the zip file. Unzip the file to a directory of your choice. For this we will use 'c:\php306'. I recommend using the version number in the folder name. This will enable you to try new versions without killing an old working one.
[ Next Page ]


Comments:
PHP4.1.1 and Apache2 soen't workmoneer02/09/06 14:26
PHP4 Apache Email (again)ChaosZen01/14/06 11:41
Phph - i want to learnLucian08/08/05 03:29
upload code for php filesMike06/30/05 07:44
RE: Problem in connecting Oracle with PHPBanzai04/05/05 11:27
RE: PHP w/ IIS : Help is here!Anup03/22/05 02:03
begginercijo12/13/04 00:40
RE: File Upload problem w/ Apache Win32cbaucom01/28/03 14:10
RE: Apache 2 & PHP4 - can't setupthebainer01/21/03 21:55
PHP EditorSokrates01/20/03 13:14
RE: Apache 2 & PHP4 - can't setupJim01/02/03 12:02
RE: Apache 2 & PHP4 - can't setupDan12/09/02 12:27
RE: Apache 2 & PHP4 - can't setupDejo4u10/23/02 15:52
Need the installer of Apache and Php4 for WinHasnain Kapadia10/16/02 03:12
myPHPsession not runing in IISiyuss10/10/02 22:00
RE: can't transmit variables via get or postslowman09/23/02 20:23
Apache 1.3.26 and php3Kalva08/21/02 14:32
File upload errorsAndy Christianson08/15/02 16:23
RE: File Upload problem w/ Apache Win32Kevin08/08/02 10:43
RE: can't transmit variables via get or postvic08/05/02 09:04
RE: Apache 2 & PHP4 - can't setupRPB07/10/02 11:51
Apache 2 and PHP4 AddModule LineRayed Mon07/01/02 23:48
RE: Apache 2 & PHP4 - can't setupJoe06/13/02 12:24
PHP4/Apache/Windows98seTaSko06/06/02 12:24
RE: File Upload problem w/ Apache Win32Waribam Bhalindra06/04/02 00:30
RE: Apache DOS WIndow Disappear on Win 98Bene05/25/02 04:48
installing apachebenchomar05/23/02 14:46
RE: PHP Session Handling in Apache NT not workingEzrad05/23/02 06:52
RE: Apache chrashes when using sessionsGary Mailer05/15/02 06:06
apache && mysql as services on win98/meAdrian05/09/02 04:02
RE: Apache DOS WIndow Disappear on Win 98Nulle05/07/02 10:50
checking network folder sizes (nt 4 servers)Chris Gibson04/29/02 07:53
RE: mail() not working on apache win32Neil Donald04/21/02 13:28
Apache chrashes when using sessionschris04/17/02 12:13
RE: mail() not working on apache win32Sam Burns04/13/02 07:52
RE: mail() not working on apache win32Kyle O'Brien04/12/02 19:39
Problem in connecting Oracle with PHPKapil Sethi04/11/02 09:17
PHP Session Handling in Apache NT not workingBurkeHokie04/03/02 13:00
mail() not working on apache win32Mario03/26/02 02:57
Username & Password.Gary03/01/02 19:39
RE: File Upload problem w/ Apache Win32AnneSo02/25/02 11:23
RE: Apache 2 & PHP4 - can't setupNezih02/15/02 08:03
RE: Easy Apache installationJulian Harris02/14/02 14:48
RE: php extensionsMarc02/08/02 08:54
Apache 2 & PHP4 - can't setupCyprian Libera02/05/02 02:11
php extensionsVinodKumar01/24/02 09:25
Easy Apache installationStefan01/22/02 03:48
RE: PHP4 + Apache 1.3.20 -> Great!Jacob Wodzynski01/16/02 14:15
EasyPHP... Why not use that instead....Jason Earl01/03/02 15:33
Finished SETUP exe with Apache & PHP4!Christian Haugan12/23/01 09:43
Windows, Apache - Won't let web pages loadlanka12/20/01 13:23
PHP 4.1 + php_gd.dllJacob Wodzynski12/14/01 10:44
RE: How to use PHP with IIS?Grant11/30/01 14:06
easy if...tony11/22/01 13:03
PHP w/ IIS : Help is here!Jeff11/03/01 18:55
RE: php editorSreenivas10/10/01 05:41
How to use PHP with IIS?Phong09/27/01 20:48
RE: php editorWdean09/25/01 20:30
RE: Apache DOS WIndow Disappear on Win 98Ian Mellor09/24/01 07:15
HELP (URGENT)Blanca09/10/01 13:44
RE: php editorMicheal08/12/01 15:45
RE: Apache + PHP4 with PosgreSQL under WindowsBenoit FOULETIER08/10/01 12:20
RE: PHP TriadMicheal08/08/01 20:31
PHP4 + Apache 1.3.20 -> Great!Lukasz Szmit07/17/01 10:06
RE: php editorScott Cooley07/06/01 15:32
File Upload problem w/ Apache Win32Scott Cooley07/06/01 15:29
PHP Cannot be installedBill Wiriawan06/25/01 01:06
apache v's cgi apigary mailer05/24/01 08:22
RE: Apache DOS WIndow Disappear on Win 98Udo05/22/01 08:49
RE: Setting up PHP4 as a module on windowsNurmi05/19/01 09:09
RE: browser wants to download the filegary mailer05/09/01 11:44
browser wants to download the filenick giannoulois04/25/01 15:19
RE: ApacheAndreas Indahl04/20/01 07:12
Apache + PHP4 with PosgreSQL under WindowsAnnabelle04/20/01 04:29
RE: ApacheKien04/19/01 18:58
php editorPhilip Simard04/12/01 19:30
ApachePhilip Simard04/12/01 09:09
RE: that is too complicatedRavage03/28/01 10:45
Apache DOS WIndow Disappear on Win 98Anthony03/19/01 12:23
RE: Help!!!frewuill03/13/01 17:51
PHP-SELFPete03/13/01 10:08
Help!!!Marcela Durán02/23/01 05:34
RE: Setting up PHP4 as a module on windowsMarco van den Akker02/06/01 04:34
RE: Setting up PHP4 as a module on windowsRicardo Martins02/04/01 18:46
RE: PHP Triad; All-in-oneJose Lourenco02/03/01 10:09
RE: php_mod vs CGIShanx02/02/01 19:16
RE: PHP TriadJuan Manuel Fluxa01/21/01 12:10
PHP Triadalan01/20/01 12:16
no tthat complicated..Hari01/10/01 13:29
RE: that is too complicatedDave12/28/00 21:14
that is too complicatedMiro Svrtan12/22/00 16:45
Setting up PHP4 as a module on windowsMark A. Gutierrez12/17/00 23:20
php_mod vs CGISpatz11/20/00 04:50
Be careful with extensions.Malcontent11/14/00 03:34
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.