Wamp server can't connect to localhost - wampserver

I am having a problem with wamp server (again). First the icon would not turned green so I change the port to 8080 and now it turns green. However, when I visit localhost, I just get the message in the screenshot below.
Does anyone know what's going on here? Same when I try to go to PhpMyAdmin. I have version 2.1

try http://localhost:8080
(or http://127.0.0.1:8080 if there is a problem with the resolution of localhost)
you changed the port and I am not sure if you reflect this in your request.

Do you have Skype on in the background? If so turn it of restart your web server on port 80.
Edit: Like said in another response check for anything on port 80 and turn it off.

Check your system for any program that uses the port 80, and turn it off.

This will surely work:
Check in which Drive your Windows OS is installed. If it is E, F or other then C, then install wampp in that particular drive.
If Microsoft Visual C++ 2010 SP1 Redistributable Package is not intalled then install from : Download link
It should work.

I too faced the same issue during the installation.
This error is due to
1) if some other service is running on the same port
2) if some other application may block your application.
For checking
1.) Select the server icon. Select "www directory" and make sure it is pointing to where it should and that there are files there. --- It points to my Documents/wamp/www --- where there are an index and your test files.
2.) Select the server icon. Select Apache. Select service. Select "test port 80". See what port 80 is actually used by. --- I get "your port 80 is actually used by:......
Here you can find your port is used by which service.
If you have iis running remove that temporarily now by control panel-> uninstall program -. turn window feature on/off -> iis.
After this restart your system and run wampserver now. It will work Hope this may help

Check in your hosts file to see if there is a entry like this:
127.0.0.1 localhost
if there is a # before it like this
# 127.0.0.1 localhost
delete the hash as that is a comment
you will find your host file at:
C:\Windows\System32\drivers\etc

Related

Installation of WAMP SERVER

I am trying to install WAMP SERVER on Windows 7 PC. After completing installation I typed localhost/phpmyadmin/ as suggested. But the error is "Site can't be reached". Also when I searched on it google says that green icon should appear on icon, but it is not so... What do I do? Should I try 2.5 version instead of latest 3.0.4 or any other suggestions?
check what port number you apache http.conf is trying to acquire.
Also do check if any other application is using that port.
Skype (usually does).
Also try Changing the listen port number to 8080
in httpd.conf
Listen 0.0.0.0:8080
and try
http://localhost:8080
similar link:
WAMP - Your port 80 is actually used - Error

403 Forbidden - WAMP Server 2.5

I have installed WAMP version 2.5 on my windows 8.1 machine. When i browse to localhost in my browser, the WAMP server page is visible.
But when I browse to my localhost in my mobile connected to same AP, I get the message "403 Forbidden: You don't have permission to access / on this server".
Any suggestions?
WAMPServer is configured to be a single seat developer tool for the AMP stack on a windows system.
As such and for the security of the complete beginner, WAMPServers Apache is configured to only accept connections from the PC that is running the Apache service.
If you want to connect to Apache from an IP other than that of the PC running WAMPServer, like your phone or another PC on your local network, you have to tell Apache that is allowed.
The simple solution for this is to use the wampmanager menus system :-
wampmanager -> Put Online
This will change the httpd.conf file from
# onlineoffline tag - don't remove
Require local
To
# onlineoffline tag - don't remove
Require all granted
Thus allowing any ip address in the universe to connect to your Apache web server. If you are sure that there is no external access to your local network this is reasonable solution.
If however you think that now or at some future time your network may allow access over port 80 from an external source, I prefer to be a little more specific when I change this parameter. So if you prefer you can
Edit the httpd.conf file, use the wampmanager menus to do this
wampmanager -> Apache -> httpd.conf
Then change this
# onlineoffline tag - don't remove
Require local
To
# onlineoffline tag - don't remove
Require local
Require ip 192.168.1
assuming that your local subnet starts with those 3 quartiles and that your phone is connected to your router via WiFi.
If your phone is using your suppliers network i.e. not your WiFi this will not work and you will have to Port Forward your router, but thats another question.
I searched for solutions to resolve the error "Forbidden" with Wampserver 2.5 in Windows 8.1.
Here's what I found:
Locate the file: httpd.conf
In my case the file is in C:\wamp\bin\apache\apache2.4.9\conf
The look for the line <Directory "c:/wamp/www/">
And then look for the line Require local, next write the following:
Require all granted
Restart your wampserver and you can browse the localhost on every devices that stays connected in your local network.
If you try all the above cannot solve, then try this.
I have the same problem then I realize there is .htaccess file that blocks the directory listing. Try to remove or reconfigure the .htaccess file.
All the best.
I uninstalled and reinstalled the services, almost damage the wampserver.
I tried this, and the section "Fix 403 Forbidden error on other computer in local network" worked for me. It was simplier, becuase the issue was in the ‘httpd-vhosts.conf’ file.
https://www.digifloor.com/simple-steps-fix-403-forbidden-errors-wamp-server-28

WampServer is not working

I have just installed WampServer. But it's icon is always red. I restarted my pc but it is still red. What should I do about it?
I already changed httpd.conf in c:/wamp/bim/apache/apache/conf.
I changed listen 80 to listen 8080 but nothing changed.
I also closed Windows Firewall and Skype has not been started.
Try this, :-
Go to skype:
Tools -> Options -> Advanced -> Connections and uncheck the box "use
port 80 and 443 as alternative".
restart wamp,
Hope this helps..
If the Wampmanager icon stays red then both the APache and MySQL services have failed to start, so something sounds very wrong.
Have a look at the Windows Event Viewer, in the section called Microsoft -> Applications
Look for messages from MYSQL and Apache. If they fail before they can write to there error logs they log error messages in there. Thay should give you an idea about what is wrong.

Localhost is not working in wampserver

Already i installed Wampserver, that time it works correctly. A few days back i try to open localhost, it displays "Oops! Google Chrome could not connect to localhost
Did you mean: localhost.­net". I don't know the problem.
You have to start Apache server.For that,you have to right click Wamp icon.Then click start Apache.After this is done,enter localhost in the url.It displays a message 'It Works!.
Hope this resolves your problem.
You have to manually start the server first.
That is you have to start Apache sever, then enter localhost in the url
To start double click on the Xampp icon. Then manually click on the start button for apache, mysql and other features which you need like tomcat and filezilla. Dont close it but just minimize it.
Do you have skype running? If so close it so its not running at all and restart wamp.
Skype uses port 8080 which Wamp uses too. switching the ports would fix this.
Heres a previous Q/A
Can't access localhost or phpMyAdmin with WAMP
For a WAMP server, just run the application and you will see an icon in the taskbar from which you can manage certain properties. That said, so long as the server is running, localhost should be working.
You must did not run the apache server first.
You should click the icon of the wamp , then click start apache.
Hope that helps.

Cannot access http://localhost:3000

I am trying to learn Ruby on Rails, I have followed the instructions from this page to get rails installed on my PC.
I am also trying to follow this webcast to try and learn the language and framework. Everything is working so far, apart from the fact that I cannot access
http://localhost:3000
http://0.0.0.0:3000
http://127.0.0.1:3000, or
http://<actual IP address>:3000
locally. If I try the from another PC on my network then it works great. I have tried in Chrome, Firefox and IE7 but none work.
Has anyone else had this problem?
EDIT: Typical!! It's started working now. I have no idea why, I am typing the exact same address in to the address bar and it now works. But only if I use http://127.0.0.1:3000, localhost doesn't work. I do run IIS ASP.NET/ASP websites on this machine, and they work fine with localhost.
EDIT 2: If I trying pinging localhost it actually says
Reply from ::1: time<1ms
0.0.0.0 yields...
PING: transmit failed, error code 1214
only 127.0.0.1 seems to work. I did have IPv6 turned on, so I've disabled that and will try again tomorrow to see if a reboot helps.
I had this issue as well with Vagrant. The secret is to run
bin/rails server -b 0.0.0.0
What 0.0.0.0 means is to listen to all interfaces, not just on localhost. The alternative is to SSH into the vagrant machine with a SOCKS proxy.
ssh -C -D 8080 vagrant#localhost
Open up your Internet explorer proxy settings and set the SOCKS v5 proxy to port 8080.
In order to access http://localhost:3000 you need to run the local Rails server in a terminal window:
$ rails server
This is described in this section of the Rails Tutorial book.
Note: I am the presenter of the screencasts in question.
Can you telnet to the port? Try:
telnet localhost 3000
That should tell you if the ports unavailable at the TCP level, or whether something's going on at the HTTP level.
Ping might not work if ICMP is disabled, which could be completely unrelated to your issue.
Also, try looking in your hosts file for any redirections:
c:\Windows\System32\drivers\etc\hosts
One way is to do the simple
rails s
Another (more specifically) is
rails start localhost 0.0.0.0
or
rails start 0.0.0.0
another way is
rails s 0.0.0.0
all of these works
I had an epic issue with my System Path (Environmental Variable) not being set properly.
Simple copy paste job, unplugged the 1 week stalled Ruby installation.
Control Panel > System > Advanced tab > Environment Variables > System variables > Path... Edit...
Make sure it contains these paths (among others)...
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
I had your same identical problem. You have simply to run
$ rails server
from inside the folder of your application, not outside...so, if you have your application in
C:\Sites\myapp\blog
and blog is the folder where live your app, the command has to be prompted from here. Launching it from myapp folder won't work.
Are you possibly using a proxy but haven't listed localhost as proxy exception?
Have you tried disabling your firewall? They can cause pesky problems at times.

Resources