WAMP installation

WAMPServer is a Windows web development environment. It allows me to create web applications with Apache2, PHP and a MySQL database. Alongside, PhpMyAdmin allows easy management of databases.

WAMP offers an easy way for installation. Basically, the process contains four steps:

  1. Download and install WAMPServer
  2. How to use your local (localhost) web server
  3. Set up PHP configuration settings
  4. Managing the local MySQL database

WAMP installation address: http://www.WAMPserver.com/en/ .

I downloaded WAMP with products as follows:

  • Apache 2.2.22
  • Mysql 5.5.24
  • php 5.4.3
  • XDebug 2.1.2
  • XDC 1.5
  • PhpMyadmin
  • SQLBuddy 1.3.3
  • webGrind 1.0

After the installation, you have to edit environment path manually.  Items that I added include:

[WAMP installation path]\ bin\mysql\mysql15.5.24\bin
[WAMP installation path]\ bin\php\php5.4.3
[WAMP installation path]\ bin\php\php5.4.3\ext

By doing this, we can access mysql database through windows command line. And we have the ability to use advanced extensions in WAMP.

Before we start up our WAMP server and test it on our browser, we have to add permission to run that software. What I have done is to change the configuration of httpd.conf and add few lines in hosts file.

Now we can test our WAMP server by clicking on WAMP icon and inputting the address http://localhost on browsers. The result should be as picture shows.


[Issues I encountered in this step]

  1. No permission to access WAMP configuration page.
  2. Cannot startup WAMP server because of occupation of TCP/IP port 80.

WAMP set “www” folder as default path to run a website. But we can set it to another place to run our own website.  Two key files make that work. One is config.inc.php which is the name of phpMyAdmin’s configuration file. It must exist in the phpMyAdmin top level directory (where you can find the Documentation.html as well) but not in ./config/ or any other subfolder and must be readable by php.

First phpMyAdmin will load the distribution defaults (located in ./libraries/config.default.php, please do NOT edit THIS file), then over-ride those values with anything occurring in ./config.inc.php. Make sure to have $i=0; $i++; before the first $cfg[‘Servers’][$i][…]. If any value does not appear in config.inc.php, the default is used. See the Quick Install page for more information.

You can also see a list of configuration directives as part of the file Documentation.html shipped with your distribution. There you can find an explanation of each directive if you desire to customize your installation. Here an often asked example for multi-server setup. Simpler config.inc.php files are provided on the Quick Install page.

Caution: some distributions (e.g. debian ) include their configuration settings from /etc/phpmyadmin. See more on http://wiki.phpmyadmin.net/pma/config.inc.php. So what we do is to replace parameter of $wwwDir with the location of the place you want. Save and restart WAMP server.

Another file is httpd.conf. It is the main configuration file for Apache web server. As much as I did, I changed a parameter of DocumentRoot with the same location as I do in config.inc.php. I just need to save and restart WAMP service.


[Issues I encountered in this step]

  1. Cannot start up WAMP server because of invalid file location.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s