Localhost Inaccessible with WAMP - php

I am running Windows 10, and I just downloaded WAMP. I am trying to run localhost but whenever I type (http://localhost) into my browser I get this error:
"This site can't be reached. localhost refused to connect. ERR_CONNECTION_REFUSED."
I have already tested to see if port 8080 is being used, and it is not as it shows this comment:
"Your port 80 is not actually used."
Also, I have tried changing it to port 8888 but it has not worked. The Icon for my WAMP is currently red as well.
Thanks in advance!

You may need VC++ 2010 version, i just installed this and it worked :)
(my computer, win10 x64)
http://www.microsoft.com/en-us/download/details.aspx?id=8328

Related

Unable to connect http://localhost/phpmyadmin for xampp v3.2.4, php7.4.9

I have installed XAMPP, PHP version7.4.9 in windows 7 ultimate. Installation is successful http://localhost is working fine. But when trying to open phpmyadmin i.e http://localhost/phpmyadmin blank page appearing. I have also tried to change port number say 80 to 8011, 443 to 444 but nothing change. Please advise. Thank you

How to fix localhost refused to connect on Windows 10 Wamp server and Xampp?

I've installed WAMP Server on Windows 10 and it was working fine. But when I try to load localhost today it gives me refused to connect error. I've read some questions on Stack Overflow and tried their answers but no luck.
Re-installed wamp (also tried xampp. non of these work)
IIS is off
Web Development.. thing in services is not running.
Tried netstat -aon and port 80 PID is same as wampapache64 process.
changed listening port to 81 in httpd.conf in wamp => apache =>
Cleared browser cache
Wamp icon is green
Can't connect using 127.0.0.1
Nothing works.
Screenshots:
I will assume the wamp icon in the system tray is green. I think you should start tracing the root cause from the apache error/access log.
Try change the http port to 8080 and access localhost:8080. left click the wamp icon in the taskbar, go to apache > httpd.conf and edit this file: change "listen to port .. 80" to 8080.
Try the hosts file with only the initial records and test.
127.0.0.1 localhost
::1 localhost
If you are facing the error from the apache errors log file
(OS 10038)An operation was attempted on something that is not a socket. : AH00332: winnt_accept: getsockname error on listening socket, is IPv6 available?
then do the following:
* Run 'command prompt' as administrator and run the command netsh winsock reset . and restart the PC.
Skype default port is 80 and this might be having a conflict .. try to change it from Skype options.
Finally make sure the antivirus or any firewall you are having is not blocking your application requests.
firstly, uninstall wampp as well as xampp server from your PC. Also delete the wampp/xampp folders in C drive.
then install wampserver 2.0i from the link below-
wampserver 2.0i
after installation, start wamppserver and try to open localhost in chrome browser.
if localhost doesnt work, then try localhost:80
hope it helps!!

Wamp server Apache does not starts

I'm working with wamp server 5-6 years. I bought a new laptop with windows 8.1. I installed wamp server and 3-4 about I haven't problem. But today my wamp server not starting. When I was doing my research I could not find anything related to my problem.
I checked and the IIS ins't installed on Windows features
I uninstalled skype ( which using the port 80 )
I re-install 2 times the wamp server and the last install I reinstall also the MS Visual c++ redistributable
I deleted previous the install all files ( the directory c:/wamp )
I checked the "Web Deployment Agent Service i" aren't running
Please not that : I'm not changed anything on my pc... and yet I still have the problem.
Also in windows logs I saw the following errors for apache:
(OS 10013)An attempt was made to access a socket in a way forbidden by
its access permissions. AH00072: make_sock: could not bind to
address [::]:80 ( 2 times )
AH00451: no listening sockets available, shutting down
AH00015: Unable to open log
Any idea or help is very helpful... Thank you for all replies
OK I found the solution. I disabled both the IPv6 and again the SQL Server reporting service and I changed the port again to 80 from 8080 and now it's working. Thanks all you for your helps

XAMPP V3.2.1 -MySQL throwing error

I have installed the XAMPPv3.2.1 for PHP development.Since I have installed Skype and its using the Port 80 and 443 ,I configured XAMPP to run on ports 1333(http.conf) and 3333(https.conf).
I started the xampp MySQL service and started successfully.
When I navigate to http://:1333 xampp is working fine ,However if I click on phpmyadmin i am getting the following error.
MySQL said: Documentation
2002 - An attempt was made to access a socket in a way forbidden by its access permissions.
The server is not responding (or the local server's socket is not correctly configured).
Connection for controluser as defined in your configuration failed.
can anybody help me in resolving this issue?
Thanks in advance.
Here is what worked for me with all the default settings of xampp:
Quit skype
Quit skype
Run xampp again. It should now start again
(optional) run skype again
Hope this helps.

wamp server cannot open Localhost

I am new in php and now i installed wampserver 2.2 application and when i click to Localhost option, the "Unable to connect" page shown in my Firefox browser.
this is my www folder:
And this is my index.php file:
<html>
<head>
<title> Hello To PHP Learning! </title>
</head>
<body>
<?php
echo 'Hello World';
?>
</body>
</html>
Have you installed the C++ Redistributable Package ?
You should install it before installing wamp!
Did you Tried
127.0.0.1
instead of localhost
IIS and Apache/Wamp are both web server and might conflict in some way, so you have to disable IIS in order for Wamp to work
Disable IIS :
Control Panel, Uninstall Programs, Turn Widows Features On or Off, uncheck Internet Information Services
if using skype, open skype > tools > options > connections > advanced > untick "use port 80 ..." then restart wamp then skype
There might be port problem in httpd.conf change it to 80 instead of other
ON LINE NO 40+
LISTEN 80
OR TRY TO CONNECT
The last but not least method
Try to uninstall WAMP Server and reinstall it in another Drive except same drive.
Your wamp server should be started (green icon in the tray), the Apache and PHP services should be ON.
In most of the cases wamp server launches Apache on default 80 port, which might be used (for example from Skype) when you try to start Apache, so kill processes that listen on port 80 before launching wamp.
Causes for ’404 error in wamp server’:
This problem happening for Port issue. You may be install some services which one taking Port 80. Like,
Skype
IIS Express Web Server
Some Torrent Clients
Teamviewer
...
So only ‘HTTP 404 error page not found’ happening.
Solution:
You have to change your wamp server Port number. Just do following simple steps,
Open httpd.conf file
After run your wamp server, left click taskbar Wamp green icon. Then go-to Apache->httpd.conf
(Otherwise open like: C:\wamp\bin\apache\apache2.2.22\conf )
Change Listen 80
There, Line number 46 having “Listen 80″.
Just replace 80 as “81″ like
Listen 81
Change ServerName localhost:80
And Line number 171 having “ServerName localhost:80″.
Just replace with same number as you used Line number 46. Like,
ServerName localhost:81
And save this file.
Use URL
Just restart your Apache or Wamp then use URL like following,
localhost:81 or
127.0.0.0:81 ( here 127.0.0.0: is your wamp IP )
localhost:81

Categories