[COME] Si cambia la porta di default a 8080 in WampServer



Attenzione: questo articolo è disponibile in lingua italiana solo tramite traduzione automatica (Google Translate). Premete il pulsante qui sotto per attivare la traduzione. Tenete presente che una traduzione automatica è tutt'altro che perfetta.

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.

Commenti (2) a «[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 🙂

Nessuna retrotraccia o avviso a «[COME] Si cambia la porta di default a 8080 in WampServer»

Si prega di usare Facebook solo per commenti brevi.
Per commenti più lunghi è preferibile utilizzare l'area di testo in fondo alla pagina.

Commenti Facebook

Lascia una risposta





Nel rispetto delle apposite norme di legge si dichiara che questo sito non ha alcun scopo di lucro, non ha una periodicità prestabilita e non viene aggiornato secondo alcuna scadenza prefissata. Pertanto non può essere considerato un prodotto editoriale ai sensi della legge italiana n. 62 del 7 marzo 2001. Inoltre questo sito si avvale del diritto di citazione a scopo accademico e di critica previsto dall'Articolo 10 della Convenzione di Berna sul diritto d'autore.