How to view PHP website on localhost

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
Wamp

There are few ways to check your PHP website. 1. Either on Localhost 2. Directly on webhosting.

Advertisement

Getting webhosting and trying it everytime is wastage of money if your website will take time.Thus we use localhost to view our website.

Video of the Day

Video of the Day

Step 1

Download Wamp and install on your computer. Site: http://www.wampserver.com/en/

Advertisement

Step 2

You have successfully install Wamp server and now ready for viewing of page on localhost.

Step 3

Find the directory where Wamp server is installed. Mostly it will be in primary drive. for e.g: c:/wamp

Advertisement

Step 4

WWW

Open WWW folder as shown in figure.

Advertisement

Step 5

Copy all the files related to your PHP website in WWW folder to be viewed on loclhost.

Step 6

Wamp Server Started

Start your WAMP server.

Advertisement

Advertisement

Goto: Start->ProgramFiles->Wamp Server-> Start Wampserver.

A small telephone like icon will be shown in TaskBar as shown in figure.

Step 7

Localhost

Open your web browser Type: http://localhost You will localhost page by wampserver as shown in figure.

Advertisement

Step 8

Click on your project and you will see the list of files in your folder. Open Index.htm or Index.php or your start page of your website.

You will see this address in address bar http://localhost/yourfolder/index.htm

Step 9

You are all set to view your website without going online.

Advertisement

Advertisement

resources