How to install WAMP server on Windows OS and how to execute a PHP file

 Installing WAMP Server


WAMP stands for "Windows Apache MySQL PHP".  This is servers which offers users to host their website free.  Apache, MySQL and PHP are the free source which can access by the users easily.  Instead of installing all the separate OS's, we can install the WAMP as a package software.  From this, we can access all that sources in one package.

1. Download WAMP server :

We can download the WAMP server from the internet easily.  

Download WAMP server for 64 - bit  "

" Download WAMP server for 32 - bit "

By clicking the above link, you can download WAMP server.

For the wamp you need to install some Microsoft Visual C++.  You can can download this from clicking below,

" Download vcredist_64

  1. There are two different links for downloading WAMP server according to the 32 and 64-bit systems.  
  2. Download correct version for your computer.
If you want to see all the versions, which are available in wamp server, you can click this link to visit all the versions of wamp, PHP, MySQL and MariaDB.

" Versions of WAMP "

2. Installing Progress :

I have already downloaded the wamp server from the net.  For installation, you need to click that downloaded application, it will open the dialog box and ask you to select the language.  You can set the language as your own.  
After the language selection the setup process will be initiated.  It will show the terms & conditions of the wamp server.  You need to accept that agreement proceed to do to press "next" three or two times will be you need to press next. 

After that, it will show versions of PHP, MySQL and MariaDB you can select any version whatever you want.  From this we can install MySQL, and PHP directly.  After that it will continue to proceed installation.  After all installation it will ask for you to what browser you are going to use for PHP, in default Internet Explorer is given to the server.  If you want to change that default browser click "yes" it will lead you to your library.  If you want to set "Google Chrome" as a default browser,  to this as given below,

This PC --> Local Disk (C) --> Program Files (x86) or Program Files -->  Google --> Chrome--> Application --> Chrome (File type: Application)

So, you can set "Chrome" as your PHP browser.  After this it will ask you to what text editor are you going to use for PHP, in default there will be notepad.   If you want to change that click "Yes", it will lead you to your library.  For example do you want to Notepad++ as text editor.

  •  If you installed Notepad++ in your system you need to do follow given below,

This PC --> Local Disk (C) --> Program Files (x86) --> Notepad++ --> Notepad++ (File type : Application)

  • If you have Notepad++ as .exe file you can directly choose that application where you have saved.

3. After Installation:

After this, the wamp servers logo will be shown in your desktop.  Click that icon, 4 or 3 times the cmd will be open and close automatically.  After that, you will see the icon of "wamp" in taskbar, if you hover on it.  It will change from "red" color to "green" or "orange".  If you click  on that, the features that offer from WAMP will be displayed.  You can change the version of PHP by clicking on PHP option.  Like this, you can access the WAMP server.  

4. File Storing:

You can create a php file using text-editor like notepad, notepad++ or etc.. After creating php file, save it with the extension of ".php" in the location of,

Local Disk (C): --> wamp64 --> www --> file_name.php

If you failed to add ".php" that file will not be run as php.  If you failed to store the file in the specific location "wamp" server cannot access the php file.

5. Executing PHP file in Wamp server:

During installation, you are asked to give the default browser for the PHP.  So, the wamp server only works on that default browser.  
  1. Open Google Chrome
  2. In search bar type as "localhost/file_name.php
  3. Press enter or search symbol
  4. Your PHP will be executed.
If you stored your PHP files in folder, within the www directory, you need to do as
  1.  Open Google Chrome
  2. In search bar type as "localhost/folder_name/file_name.php and press enter
  3. Your file will be executed.
Like wise, you can execute your file.

If you have any doubts on this you can comment on the post or ask questions in contact form which is available in menu bar of the blog.

Subscribe Knowsomethinks blogspot for more news and coding, the notifications of every post will be updated to you..



 

Comments

  1. bro...pls update link for wamp server 32 bit...asap

    ReplyDelete
    Replies
    1. 32 bit wamp server download link has been updated. If there is any mistake or error you can visit, versions of link in that u can see and download 32 bit wamp version

      Delete

Post a Comment

Popular posts from this blog

Simple PHP programs I

Posters about Villages

Year 2020