This php tutorial is intended for developers - both beginners and Experts to setup a testing WAMP server on personal computers or laptops.
How to Install PHP 5 on Windows 7.
PHP Windows Install Steps
Set Windows environment variable for PHP.
Setting the Environment Variable "makes" the "c:/php" path "known" to Windows 7 operating system.
Defaults with a few exceptions will get us up and running.
I DO suggest, however, that you mske time to go over to php.net when you are ready to delve into more complex configurations.
Search php.ini for "doc_root"
doc_root = "C:Apache Software FoundationApache2.2"
The extension directory is where you find and add php extensions. Windows php extensions are binary ".dll" ( stands for dynamic link library) files with php_ added to the front of the filenames.
extension_dir = "C:phpext"
http.conf holds all the apache server configurations
WARNING BACK UP httpd.conf BEFORE MAKING CHANGES! MISTAKES CAN CRASH YOUR SERVER.
When Windows loads back up you will probably see status messages about Apache and PHP starting. If all has gone well with your installation, the Apache should server will start.
If your web server won't run, then you probably made a mistake in either the httpd.conf file or the php.ini file.
This would be great time to go back and get those backups from earlier in th tutorial
Make sure that you did not change anything accidentally such as typing an accidental character or space by bumping the keyboard.
If all else fails, Call Obewan and drop in the backup configurations files to their respective folders which should restore balance to the force!
Then it's time to write your first script and test out your new development box!.
< ?php echo '< h1>My PHP must be working!< h1>';? >
If everything is working you will get this output:
Now you are ready to start learning how to write PHP.