Install PHP on Windows XP
Windows Binaries PHP
5.0.5 zip package to your local machine. Extract it to c:\php
(or any path you like, which does not have spaces in the path )
you have three options:
- copy the file to the Windows system directory,
- copy the file to
the web server's directory,
- add your PHP directory, C:\php to
The 3rd choice is the best: add c:\php to PATH environment variables.
Right click on "My Computer" icon on your desktop. Select "Properties".
System properties window(like following) will pop up.
In the tab
"Advanced", click "Environment variables" Button,
you will see the following window:
Find the "Path" entry, highlight it and click edit, add "c:\php"
to the end of variable string. Do not forget ";" in front of c:\php.
See the following window:
next step is to set up a valid configuration file for PHP, php.ini.There are two ini files distributed in the zip file, php.ini-dist and php.ini-recommended. We simply rename php.ini-recommended to php.ini and save it in c:\php.