Doing manually helps you learn better...
Follow this steps…I learnt by making so many mistakes..but refined my steps as I proceeded…so hope this short tutorial of mine would help you get all 3 working properly.
You should install MySql first, then php and then finally apache in order for them to work properly.
Download Mysql from
http://www.mysql.com and save them in a folder called mysqldownloads- you can name it whatever you like.
Run the setup.exe in mysqldownloads. Let the files be installed in a folder you can name it as mysql for ease of recognition.
Follow the steps below to get your PHP working with your apache:
Download the newest PHP binary distribution for windows from
http://www.php.net
Extract to a directory of your choice. I suggest c:\php
Copy php4_ts.dll to your windows\system32 directory
Copy php.ini-dist to your WINDOWS directory...typically c:\winnt - rename it to php.ini
Open php.ini in an editor and at a minimum change extension_dir to: c:\php\extensions
I recommend quoting your values. ie: extension_dir="c:\php\extensions"
Close php.ini file.
Download apache from
http://www.apache.org
Install apache in G:\Program Files\Apache Group\Apache
Check if the apache server is running ok by going to your brower’s address bar and typing
http://localhost
Open php.ini file again:
Set the 'doc_root' to point to your web servers
document_root. ex: G:\Program Files\Apache Group\Apache\htdocs
close php.ini file.
open G:\Program Files\Apache Group\Apache\conf\httpd.conf file:
Just add the following lines to your httpd.conf:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
Use find (Ctrl+ f) to get the first words from each respective lines:
For example: press Ctrl+ f and in the find window type : LoadModule and at the end of last LoadModule line paste this line : LoadModule php4_module c:/php/sapi/php4apache.dll
Do same for rest two.
close httpd.conf
Test configuration of http.conf file by going to start>programs>Apache HTTP server>Configure Apache Server>Test configuration
See the test message. If error is reported debug it first.
After you get the “No Syntex Error” message- restart your apache server.
Put the following code into a text file and save it as phpinfo.php.
<?php phpinfo();?>
Very important note: when you save this text file don’t save it as a text file..so what you have to do is simply change the file type from “text” type to “all” type when u click save. It is very important that you do it correctly. It took me 2 whole days to figure out that I saved this file as a text file, which I should not have done.
Put phpinfo.php into G:\Program Files\Apache Group\Apache\htdocs
Go to browser and type: http:\\localhost\phpinfo.php
Do you see a file contaiting so many information about php configuration? If yes,
You are done successfully installing all 3!! Congratulations!
If you get a message “ no server found” go back and check all the steps again.
Crazy Topu