Thursday, 27 August 2009

Install PHP on a Windows PC

Step 1

Download the installation file from the php website. This is a ZIP file, so you'll need some sort of unzipping software to download the installation file properly.

Step 2


Unzip the file with a program such as WinZip and place it somewhere easy to find, like C:\php.

Step 3


Enter an email address of your choosing, which will be used later as a login, and make sure the button next to "Display all errors warnings and notices" is checked.

Step 4


Pick the web server software you are using. Most people work off Apache, but PHP can work with multiple server softwares. Make sure ".php" is checked.

Step 5


Open Windows Explorer and find the file (if you're using Apache) "C:\Program Files\Apache Group\Apache2\conf" or wherever you installed your web server software. Installing the file within your web server software will make it easy to find later.

Step 6


Open the file httpd.conf in notepad and type the following: "LoadModule php5_module c://hp/php5apache2.dll" "AddType application/x-httpd-php.php" This will add the PHP application to your computer.

Step 7


Restart Apache (or whatever web server you're using) and this should automatically install PHP

No comments:

Post a Comment