Wednesday, January 27, 2016

Installing the Wamp Server

WAMP (Windows, Apache, MySQL, and PHP) is all in one package which installs the basic programs, you will need to get a localhost running and to be able to build and run PHP scripts and pages. Once the WAMP server installation completes successfully, you have the tray icon for the management of server and all its settings. 

Similarly we have LAMP for Linux and MAMP for Mac OS

Below are the steps to install WAMP to your Windows OS:
  1. Download wamp server from http://www.wampserver.com/en/ 
  2. Select 32 bit or 64 bit package based on your OS You will notice WampServer icon at your download location

           


3. Double click on the installation package. You will receive a Security Warning after opening WampServer file. It is absolutely normal to run WampServer setup on windows.


4. You will see a standard setup wizard of windows after clicking Run button on security warning dialog


5. You have to agree the license of Wamp Server before selecting installation destination at your windows machine.


6. It is very important step of Wamp Server installation. I recommend installing Wamp Server at the drive other than Windows installation. Suppose your Windows is installed in C drive so you should install Wamp Server on D, E or any other location in hard drive except C drive. I am going to install Wamp Server in D drive. Now you can click on Next button after selecting installation location for Wamp Server



                  
1  7.  When you click on the Next button then a Select Additional Tasks dialog will appear on your             screen,  You can check following options,
                                                               i.      Create a Quick Launch icon
                                                             ii.      Create a Desktop icon

8. Setup is now ready to begin installing Wamp Server on your computer. Click on Install button to start installation of Wamp Server


9. Now your Wamp Server is starting to install on your computer.


1   10. You will receive a dialog for choosing your default browser for Wamp Server. You can choose      your favorite browser for Wamp Server as default, or simply click “Open” if you are not sure about  the installation or executable files of your favorite browser. Wamp Server will choose “Internet  Explorer” as default choice


11. Wamp Server installation has completed now and setup will guide you for Apache configurations in the next steps.
 

12. You will notice a “Windows Firewall” standard dialog while configuring Apache by Wamp Server. (You may not observe this, if your windows firewall is not active). Click on “Allow Access” by leaving default options as such to proceed for PHP mail parameters.


13. After allowing access to Apache server, you are at SMTP server configuration dialog. You can specify the SMTP server and the address mail to be used by PHP when using the function mail().   
I recommend the following values,
SMTP: localhost
Email: Your email address.
You can change this to point to your SMTP server
Click “Next” after putting the above values for the installation final dialog.

14. You have successfully installed Wamp Server  along with Apache, MySQL, PHP, phpMyAdmin and SqlBuddy at your computer.

Click “Finish” to start Wamp Server along with other services. Leave “Launch Wamp Server now” check-box checked to start Wamp Server automatically after installation.


15. Now you can see WampServer icon on the taskbar. WampServer icon has three states.

Red
Yellow
Green

Red:

Wamp Server red icon is showing that WampServer is Offline and no service has been started yet i.e. Apache, PHP and MySQL.


Yellow:

Wamp Server yellow icon shows that Wamp Server is still Offline and any service among Apache, PHP and MySQL has been failed to start.

 

Green:

Wamp Server is working normal along with all services and your development server is ready to use.


16. It is time to test our WampServer with the installed services of Apache, PHP, MySQL and phpMyAdmin. Please follow the steps to test WampServer at Windows.

Be sure, WampServer icon is green at taskbar
Open your favorite browser
Type:  http://127.0.0.1/ OR http://localhost/
Hit Enter

You have successfully installed Wamp Server on your computer if you have seen the welcome screen of WampServer. You can read Server Configuration at Wamp Server welcome screen.


That's it. Now you have all set to write your PHP MySql application

No comments: