![wamp server localhost not working wamp server localhost not working](https://i.ytimg.com/vi/G33cukiB8ro/maxresdefault.jpg)
These subfolders would then show as links in the WampServer Homepage under a menu called ‘Your Projects’ and these links would contain a link to localhost/subfoldername. In order to make life easier for beginners using WampServer to learn PHP Apache and MySQL it was suggested that you create subfolders under the \wamp\www\ folder.
![wamp server localhost not working wamp server localhost not working](https://i.stack.imgur.com/z2U4Y.png)
In WampServer it is now STRONGLY encouraged to create a Virtual Host for each of your projects, even if you hold them in a \wamp\www\subfolder structure. There has been a change of concept in WampServer 2.5 and above and there is a good reason for this change! Old WAMPServer 2.5 mechanism, or if you want to do it all manually You can launch the site from this menu, or just use the new Domain Name in the address bar EG v and the site shoudl launch. Now you must create a simple index.php file or install your site into the folder you created above.Īssuming your VH was called v You should see that name under the Your Virtual Hosts Section of the WAMPServer homepage. When the wampmanager icon goes green again all is completed. The DNS Cache will be restarted and then Apache will also be stopped and restarted. You can do this from the wampmanager menus like this right click wampmanager->Tools->Restart DNS. The Virtual Host config will have been created for you. Now open localhost wampmanager->localhost and click on the link Add a Virtual Host under the TOOLS section on the homepage.įill in the fields as specified by the instructions above each field This can be under the C:\wamp\www\ directory or in a completely seperate folder like C:\websites.Ĭreate a folder inside the location you have chosen EG C:\websites\project1\www or under the c:\wamp\www\project1\www
![wamp server localhost not working wamp server localhost not working](https://i.stack.imgur.com/mW5je.jpg)
You can do almost everything from a utility provided as part of WAMPServer.Ĭreate a folder inside to contain your project.site.
Wamp server localhost not working how to#
How to create a Virtual Host in WampServer WAMPServer 3 has made this process much easier!