Run PHP using wampserver



PHP  installation

This PHP  tutorial we will learn PHP installation process step by step, and after installation learn how to create PHP script file and how to run or execute php script file on server.

Download WampServer Here : Downlaod Wampserver link

Download Wampserver
Download Wampserver

After successfully download Wampserver install setup run as administrator. 
After Successfully Installed Wampserver open wampserver as like below :

All Programs — >> WampServer –>> Start WampServer

Start wampserver
Start wampserver

 

After start the Wampserver show the wampserver icon on taskbar near to clock icon at right bottom of windows screen.

Below menu you can Start All Services and Stop All Services of wampserver.

There is a top most option “Localhost”, which shows the server configuration.

PHP wampserver installtion
PHP wampserver installtion

Now Click on “Localhost” you have below screen for server configuration. Verson configuration PHP version and Apache Server Version configuration which  we have already installed on our computer system.

PHP wampserver installtion
PHP wampserver installation

Here, the “www directory” option define the path where we can save the PHP file.
The default location path is C:\wamp\www“.

We must save all PHP page at in “www” folder.

PHP wampserver installtion
PHP wampserver installation

When we click on “www directory” option on above menu  it will locate directly to www folder in C drive. where we have to save all PHP file.

PHP Wampserver by default create a file index.php in www folder. Where we run the index file on browser it look like : http://localhost/index.php 

PHP File
PHP File

Now, If you want to create new PHP file page, it must be save in www folder.
Suppose we create new file “meere.php”  in www folder. if we launch this file then we must write like :  http://localhost/meera.php

If we want to create new website with new name then create new folder with your website name in www folder like www -> MyWebsite. Now save all PHP pages in MyWebsite folder. If we want to  launch this pages we should write like :
http://localhost/MyWebsite/index.php.


Watch this php video tutorial for installation php process.

This php tutorial very help full for php beginners to install and setup php environment for php web development.

Leave a Reply

Your email address will not be published. Required fields are marked *