[COME] Si cambia la porta di default a 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.

[/translate_this]
2 commenti su “[COME] Si cambia la porta di default a 8080 in WampServer
  1. J Gatsbi ha detto:

    thank you so much friend, its very nice!

  2. thecame ha detto:

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

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

*