How to fix WampServer if localhost is not working

This short tutorial is about how to change default port: 80 on WampServer to different one - for example: 8080.

My experience is that if I have installed for example Skype, default port: 80 Skype using by default.

There are many others programs which can also use this port.

If you run http://localhost after fresh new installation of your WampServer and you don't see main window as is bellow, than you can do some steps.

WampServer - fix port 80

 

1. Check if your WampServer is running.

WampServer - check if running

2. If first choice didn't help, you can try to change port.

Today is current version of apache 2.4.9 which take care of running php and we need to change config of apache in this location:

C:\wamp\bin\apache\apache2.4.9\conf

File which we are interested in is: httpd.conf

You can download updated file here for apache 2.4.9: download>>

If your version of apache is different, open file httpd.conf with any text editor and find line #Listen 12.34.56.78:80

For me it's line 61.

We need to change next 2 lines - 62 and 63.

Instead of port: 80 change it to port: 8080

So you should have it like this:

Listen 0.0.0.0:8080

Listen [::0]:8080

Now save file and restart your WampServer.

WampServer - restart services

Type into your browser http://localhost:8080 instead of http://localhost and you should be good to go.

Create a dynamic website using Drupal framework easily. At the end of the tutorial on our website you will be able to create professional business presentations with applying SEO Drupal modules, with the implementation of your own Drupal themes and own Drupal module. The tutorial takes less than 2 hours and is absolutely free. In the "Download" section you will find free materials that can be used as well.

Comments And Feedback

  • Using the instructions on this page, I learned very quickly how to create a presentation site for my company using Drupal framework.

    Andreas Petikani
  • As a beginner I didnĀ“t know where can I start to learn Drupal until I found this site where I found the answer to the question how to create your own Drupal theme or Drupal module. thanks

    Evelyn Stayers
  • Many thanks for the Drupal manual, I've read several articles about Drupal and I looked at Drupal tutorials on youtube, but none of them provided such a complex example.

    Terence Pavelkov
This tutorial is currently built on Drupal version 7 system. With incoming version 8, we are already preparing further guidance to ensure the timeliness of the information on the site. We try to avoid unnecessary theory and we focus on the explanation of terms such as Drupal theming and creating of Drupal modules on practical examples to increase the effectiveness of use.