Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change port of wamp server and how to create first application [closed]

Tags:

php

port

wamp

i have just instsalled wamp server but when i'm trying to access localhost it is not accessible I think it is problem with the port because wamp uses port 80 by default. and after that i want to create a dynamic website i've never used php in past so i want to know how to get satarted ... thanks

I have tried in another system . I installed wamp and saw that localhost is accesible there but when i connected to the internet by modem wamp server stop working . I am totally confused about this port setting . I have unplugged lan cable from my laptop and restated the system then tried even it is not working .. i have changed httpd.conf file but it doesn't helps me

like image 859
Abhishek Avatar asked Jan 25 '13 03:01

Abhishek


People also ask

How can I change port number of WAMP server?

By default, when running the WAMP application on an Apache server, the localhost port is set to port 80. However, you can adjust this setting on your server by editing the "http. conf" and entering a new port number.

How can I change WAMP 80 to 81?

Windows services that listen on port 80Right click WAMP icon in the system tray and select Tools. Here you can change the port number for Apache and MySQL.

How do I change my localhost port?

Open C:\xampp\apache\conf, find the httpd. conf file and open with notepad++. Look for these lines and change 80 in the last line any other port, for example 8080. This way we will be able to run Apache but the http://localhost/url won't work for that you need to append port number into the URL.


2 Answers

First of all change Listen 80 to Listen PORT YOU WANT in Apache httpd.conf file.

Now in the same file search for the word vhost you will find it three time just uncomment it by removing # from beginning of statement (you will find it two time in one statement) .

Now open http-vhosts.conf file which is inside C:\wamp\bin\apache\Apache2.2.17\conf\extra\ and paste below code with port modification and you are done.

Using this you can set more than one port to different directory.

<VirtualHost *:5>
   ServerAdmin [email protected]
   DocumentRoot "C:/wamp/www"
           <Directory "C:/wamp/www">
                       Options Indexes FollowSymLinks
                       AllowOverride all
                       Order allow,deny
                       Allow from all
           </Directory>
   #ServerName dummy-host2.localhost
   #ErrorLog "logs/dummy-host2.localhost-error_log"
   #CustomLog "logs/dummy-host2.localhost-access_log common"

</VirtualHost>

just change <VirtualHost *:5> this to whatever port you need and restart Apache and all other service.

Now Cheers. Enjoy

like image 146
Dipesh Parmar Avatar answered Oct 27 '22 06:10

Dipesh Parmar


For change wamp server port number :

1. Go to \wamp\bin\apache\apache2.2.8\conf
2. Open  “httpd.conf” in notepad
3. Find “Listen 80” and Change it to your desired port
   (for example : Listen 8081)
4. Save it and close it .

Restart wamp server and check.

like image 45
Devang Rathod Avatar answered Oct 27 '22 05:10

Devang Rathod