Setting up WAMP server to learn php

@kaka135 (14916)
Malaysia
March 8, 2011 9:02pm CST
I want to start learning php, and my friend recommended me to install XAMPP, as it'll install Apache, php and mySql services easily. But I encountered problem when installing the Apache service, hence I go for the alternative - WAMP Server. Installing WAMP Server is easier, but I still failed to browse the "localhost" page. After searching around, I found that it's actually the port 80 has been used by other applications, though I have stopped some of the SQL Server service. Finally I have found a way to solve this: Change the port number! To change the port number: 1. Go to C:\wamp\bin\apache\Apachex.x.xx\conf 2. Open the httpd.conf file 3. Look for "Listen 80" and change the number to something else, e.g. 81 It's just this easy. The trouble is that, every time when I need to go localhost, I have to manually type this in the address bar: localhost:81 It's okay for me, as long as it works! ^_^ Just want to share this with you all, hope this helps those who want to learn php. To install WAMP Server: http://www.wampserver.com/en/
2 responses
• India
18 Mar 11
Wamp is working perfectly fine on my pc and its easy to install. But i found some problems in xamp,Xamp is so confusing to me
1 person likes this
@kaka135 (14916)
• Malaysia
30 Mar 11
I find XAMP is confusing too. I think you might not have IIS installed in your PC, that's why it's easier to configure. ^_^
@damnsam (67)
• India
14 May 11
dude it's better and prudent to have a port scanner scan and tell you which software is using up your port 80 and change its port rather than changing the port of your web server. Anyways, if you do not wish to change your current port setup then do this: choose a name for what you would like to type in the browser. we will assume "webserver" here for an example. try to make an entry in the HOSTS file(found in the windows directory) that looks like this: webserver 127.0.0.1:81 Now save the file and restart your computer. Although restarting is not necessary in most cases now-a-days. Now you could type http://webserver/ to browse your local webserver