Installation Guide - WAMP
Installation Guide - WAMP
36 & PhpMyAdmin
3.2 in Windows 7/Vista/XP
Index :
Step 1 : Install Apache
Step 2 : Install & Configure PHP 5.3
Step 3 : Configure Apache 2.2.11
Step 4 : Testing our Apache + PHP
Step 5 : Installing and Configuring MySQL5
Step 6 : Installing and Configuring PhpMyAdmin 3 Optional
Step 7 : Making Windows recognize myserver.dev Optional
The Pre-Requisites :
1. Apache HTTP Server (2.2.11)
The best open source webserver. You need this to turn your humble computer to a powerful
webserver to execute your applications.
Download Apache 2.2.11 (with no mod ssl) (18443)
2. PHP 5.3 – Download PHP 5.3.0 (VC6 Thread safe) (17106)
3. MySQL 5.1.36 – Goto Download page
4. PHPMyAdmin 3.2.0.1
PHPMyAdmin Download Page | Direct Download PHPMyAdmin 3.2.0.1 (4281)
The above downloads are compatible with Windows 7/Vista/Vista SP1 (32 bit OS).
Before starting this tutorial. Please Turn off UAC (User Access Control) in Vista. Trust me you will get
fed up on how many times it`ll popup while installing this environment.
EDIT php.ini
Open up php.ini using any text-editor. (Notepad, Wordpad, Preferrably Dreamweaver).
There are 2 edits in this file
Edit 1
Find extension_dir = "./" and replace it with (Please note the slashes)
extension_dir = "C:/server/php/ext"
Edit 2
Now in the following edit, you just have to uncomment (by removing the “; – semicolon”) from
the extension to activate it. So here are the extensions to be uncommented. Search for each one
them and remove the semicolon ;
;extension=php_gd2.dll
;extension=php_mbstring.dll
;extension=php_mysql.dll
;extension=php_mysqli.dll
Okay, brace yourself, we got 5 Edits in this file. No big deal, pretty simple search and replace
text.
Edit 1
Search for
#LoadModule rewrite_module modules/mod_rewrite.so
Replace with
LoadModule rewrite_module modules/mod_rewrite.so
Edit 2
Add the following below the previous edit
#PHP5
LoadModule php5_module "C:/server/php/php5apache2_2.dll"
PHPIniDir "C:/server/php"
Edit 3
Search
AddType application/x-gzip .gz .tgz
Add the following below the searched line
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Edit 4
Search for
DirectoryIndex index.html
Replace with
DirectoryIndex index.html index.php
Edit 5
Search for
#Include conf/extra/httpd-vhosts.conf
Replace withinclude conf/extra/httpd-vhosts.conf
2. Now navigate to C:\server\Apache\conf\extra
Edit httpd-vhosts.conf
3. Replace all the text inside with
view sourceprint?
01.<virtualhost *:80>
02.DocumentRoot "C:/Server/www/myserver.dev/public_html"
03.ServerName myserver.dev
04.ServerAlias www.myserver.dev
05.<directory "C:/Server/www/myserver.dev/public_html">
06.AllowOverride All
07.Options Indexes FollowSymLinks
08.Order allow,deny
09.Allow from all
10.</directory>
11.</virtualhost>
Create index.php
Open up notepad, type in the following code and save the file as index.php inside
C\:server\www\myserver.dev\public_html\ as shown in the above picture.
view sourceprint?
1.<?php
2.//index.php
3.phpinfo();
4.?>
Please note the file name, it is index.php. Many a times, Notepad saves it as
index.php.txt, while saving, don`t forget to mention the type as All Files, this
way Notepad will save it as index.php.
4. Install SQL, Now time to configure SQL. Its pretty simple, if you follow the onscreen
instructions.
Detailed Configuration
Developer Machine
Multifunctional Database
InnoDB
DSS
Execute
6. Finally click on Execute and let mysql configure everything.
During the MySQL installation and configuration,if you have missed any step or
have not configured properly, then you can run the MySQL Server Instance
Config Wizard which can be accessed via ‘Start->All Programs->MySQL’.
*If MySQL Instance Wizard does not complete the final step, reboot your computer
and configure again.*
PHP 5.3.0....nice
If you are able to see the above page, then you have successfully configured Apache+PHP5. To
verify whether MySQL5 has been installed, scroll down the page until you come across mysql
& mysqli heading as shown below.
mysql and mysqli are extensions for MySQL
7. Woohoo ! Congratulations ! You have successfully installed
Apache2.2.11+PHP5.2.9+MySQL5.1.34 on your system. *sigh*