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
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.
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.
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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With