Step 1:
Installing apache
Download the best available version of Apache web server for Windows from this Download link
Select
Win32 Binary without crypto (no mod_ssl) (MSI Installer)
or
Win32 Binary including OpenSSL
Here we using Apache HTTP Server (httpd) 2.2.17 Win32 Binary including OpenSSL
Double click the installer->Click next->check i accept the terms in the licence agreement and click next->Next->
Now see the below image to fill the server information

Then Click Next->Next->Next->Install->Finish.
If you are finished , open your favorite browser and type
http://localhost/
in the address bar and press enter.
If you will see ‘It works!’ , then your apache works fine.

Step 2:
Installing PHP
Download the latest php version from this Download link
Select VC6 x86 Thread Safe Installer
Here we using php-5.3.3-Win32-VC6-x86
Double click the installer->Click next->check i accept the terms in the licence agreement and click next->Next->
Now see the below image to select the webserver (Apache 2.2.x Module)
Then Click Next->
Select your apache configuration directory.see the below image for the path
The advantage of using the .msi installer is that it will edit and add to the Apache config file for us. In the default Apache 2.2 installation, this will be found at C:\Program Files\Apache Software Foundation\Apache2.2\conf\.
press ok Next-> Next->Install
Click finish to finish the installation.
Restart your apache server,if your are getting any error just restart your pc.
Test PHP installation
To test PHP is installed, Open a simple text editor (like Notepad) and copy/paste below code into it;
<?php phpinfo() ?>
Save as this file phpinfo.php in your Apache Document Root Folder (your home directory)
ie:
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
Now open your favorite browser and type
http://localhost/phpinfo.php
in the address bar and press enter.
If you will see the below page , then your php works fine.
If you are getting below error msg during installation
Click ok and then finish.
Open your httpd.conf file in notepad.the default path is
C:\Program Files\Apache Software Foundation\Apache2.2\conf
And add the following lines to the end of the httpd.conf file:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:/Program Files/PHP/" LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" AddType application/x-httpd-php .php #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
Save the file and Restart your apache server, if your are getting any error just restart your pc. And Test you PHP installation.
Step 3:
Installing MySql
Download the latest MySql version from this Download link
Click MySQL Community Server and select Windows (x86, 32-bit), MSI Installer to download.
Here we using MySQL Community Server 5.1.51
Double click the installer->Click next->next->Install->Next->Next->
Next->Next->Next->Next->Next->Next->Next->Next->Next->Next->
If this is your first MySql Database setup, you simply enter your root password.
Click next->Execute->Finish.
Testing MySQL
Open your MySql command line client
To open MySql command line client Go to Start->All programs-> MySql-> MySql server 5.1-> MySql command line client
Type your password and you will get like this
Step 4:
Installing phpMyadmin
phpMyAdmin is a free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web. phpMyAdmin supports a wide range of operations with MySQL. The most frequently used operations are supported by the user interface (managing databases, tables, fields, relations, indexes, users, permissions, etc), while you still have the ability to directly execute any SQL statement.
Download the latest phpMyadmin Zip version from this Download link
Here we using phpMyAdmin 3.3.8
Extract the zip archive to this location
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
And rename the phpMyAdmin-3.3.8-all-languages folder to phpmyadmin. Here 3.3.8 is version number.
Now open your apache httpd.conf file and find these lines
<IfModule dir_module> DirectoryIndex index.html </IfModule>
Add index.php after the index.html and it looks like this
<IfModule dir_module> DirectoryIndex index.html index.php </IfModule>
Restart your apache server.Open your browser and type
http://localhost/phpmyadmin/
in the address bar and press enter.
Type username and password to login.










Pingback: How to install and configure Apache,PHP,MySql and phpMyadmin on ubuntu | CONNECTwww.com
Pingback: How to install and configure Apache, PHP, MySql and phpMyadmin on Linux Mint | CONNECTwww.com