How To Host a Static Website on WampServer

Hope you have already installed WAMP on your Windows machine.In case not then Visit WampServer Installation.

After installation, if the mysql fails to start, the icon of WAMP on the status bar is not green then the possibility is that the MySQL service is not ‘ON’

In that case, MySQL must be running

So that makes me think that the second MySQL Server running on my system.

MySQL can be installed as part of some other tools/apps. If that is the case they normally set the service name to MYSQL and set it to start automatically so it is probably running before it gets to start WAMPServer and therefore blocking port 3306. The WAMPServer MySQL instance is called wampmysqld (or wampmysqld64 if you run the 64bit WAMPSever). Have a look at what services are running using the services.msc .

WINDOWS KEY + R
enter services.msc
Press the OK button    

You only need one MYSQL Server to server many databases, so you need to decide which one you want to use. If you decide to remove the non WAMPServer MySQL then don’t forget to back up your databases before removing the old MySQL

1. After the installation of Wamp go to System Tray or Notification Area as shown in the screen shot below and click on wamp icon.

2.Now click on www Directory,it will open a folder.

3.Delete all the files there and paste the HTML project which was working fine on local machine with out server.

In our case project is in folder \cakewebsitetemplate

4.To run the project go to System Tray or Notification Area->Click on Wamp icon>Click on Localhost .You will find the project folder there.

5.Click on the project i.e cakewebsitetemplate

Congrats,Your Static website is running now on WampServer.