[HOW TO] Change default port to 8080 in WampServer



If you wish to setup a complete server environment on your local machine to test your PHP-based Joomla or WordPress sites, just to mention a couple of popular platforms, you may want to use WampServer rather then separately install Apache, PHP, MySQL, phpMyAdmin and other useful tools.

In case you do it on a Windows operating system, anyway, you may find some conflict with other programs, for example Skype, that contend for access to port 80 on localhost. Therefore it might be useful to use port 8080 rather then 80 in your configuration files. To do that you need first to close WampServer by right-clicking the icon in tray and select Exit. Do not simply stop services: you must close the whole stuff. Then you have to edit the following files:

httpd.conf in [install path]\wamp\bin\apache\Apache2.2.21\conf

...
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the 
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
Listen 8080
...
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:8080
...

and

wampmanager.tpl in [install path]\wamp\

...
[Menu.Left]
;WAMPMENULEFTSTART
...
Type: item; Caption: "${w_localhost}"; Action: run; FileName: "${c_navigator}"; Parameters: "https://localhost:8080/"; Glyph: 5
Type: item; Caption: "${w_phpmyadmin}"; Action: run; FileName: "${c_navigator}"; Parameters: "https://localhost:8080/phpmyadmin/"; Glyph: 5
...
Type: item; Caption: "${c_webgrind}"; Action: run; FileName: "${c_navigator}"; Parameters: "https://localhost:8080/webgrind/"; Glyph: 5
...

When you have saved both files, launch again the wamp server and try, for example, phpMyAdmin, which would not work if the .tpl file was not modified. If it works, you have done it.

Comments (2) to «[HOW TO] Change default port to 8080 in WampServer»

  1. J Gatsbi says:

    thank you so much friend, its very nice!

  2. thecame says:

    Thanx for the instruction It’s Help me for the enigme, finish to submit wamp befor skype!!!! I’m free 🙂

No trackbacks or pingbacks to «[HOW TO] Change default port to 8080 in WampServer»

Please use Facebook only for brief comments.
For longer comments you should use the text area at the bottom of the page.

Facebook Comments

Leave a Reply





In compliance with the appropriate provisions of the law I state that this site is no profit, has not a predefined recurrence and is not updated according to a deadline. It may therefore not be considered an editorial product under Italian law #62 of March 7th, 2001. In addition, this site makes use of the right of citation for academic and criticism provided in Article 10 of the Berne Convention on copyright.