Apache won't bind to ANY port (OS 10048) - mysql

I can't get the Apache service to start.
When I try to start it from services I get the following events in event viewer.
The Apache service named reported the following error: (OS
10048)Only one usage of each socket address (protocol/network
address/port) is normally permitted. : AH00072: make_sock: could not
bind to address 0.0.0.0:8090
AH00451: no listening sockets available, shutting down .
AH00015: Unable to open logs
.
I've tried port 80 port 8080 and 8090 and I'm getting the same errors.
I've checked to see if these ports are in use and they are not listed through netstat or through a currports.exe I've used.
I had everything running but I did a SYMLINKS rebuild on apache and mysql and I think I may have done them too quick as I got an error message at the time and mysql and apache stayed down.
I had to re-install the mysql service but the Apache service is going nowhere!!
I have wamp 2.5 with apache 2.4.9 running on windows 2008 R2 Enterprise for the purpose of an office intranet using wordpress.
Help very much appreciated
Cheers
JCro
EDIT Code from Httd.conf. I have just added the lines I've amended #
#
Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen 80
#
# Dynamic Shared Object (DSO) Support
#
#
ServerName localhost:80
HostnameLookups Off
#

Its not too clear what caused this situation but this may get you back up and running.
Start WAMPServer
uninstall the Apache service
wampmanager -> Apache -> Service -> Remove Service
reinstall the Apache service
wampmanager -> Apache -> Service -> Install Service
start Apache
wampmanager -> Apache -> Service -> Start/Resume Service
Now if you ever want to rebuild the Apache SYMLINKS (mysql has non by default) you do this :-
wampmanager -> Apache -> Version -> (click on the current version number)
Then wait a few seconds while WAMPServer rebuilds the SYMLINKS and restarts Apache for you.
Oh then I would put Apache back to Listen on port 80.
RE: Your httpd.conf amendments
This line should be a comment, its an example but not intended to be part of the used parameters in this file
#Listen 12.34.56.78:80
These 2 lines shoud be
# this is for IPV4
Listen 0.0.0.0:80
# This is for IPV6
Listen [::0]:80
These 2 lines look ok as
ServerName localhost:80
HostnameLookups Off

How to see port number in Windows 10?
Open a command prompt window (as Administrator) From "Start\Search box" Enter "cmd" then right-click on "cmd.exe" and select "Run as Administrator"
Enter the following text then hit Enter. netstat -abno. ...
Find the Port that you are listening on under "Local Address"
Look at the process name directly under that.
After you found the PID of the service running on a given your computer, open your task Manager and sort the running processes by PID. find your target PID right click and go to services, right click on the service and stop the service. without starting your apache 2.4 service just start by getting this path "C:\Apache24\bin>httpd -k start" then enter. This is the way I become successful after many ups and down.

OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : AH00072: make_sock: could not bind to address [::]:80 (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : AH00072: make_sock: could not bind to address 0.0.0.0:80 AH00451: no listening sockets available, shutting down AH00015: Unable to open logs
I was getting the same error when i tried to start the Apache2.4. But when i replaced the Listen 80 with Listen 8080(by going to httpd.conf file placed in conf folder inside Apache24 folder), my problem solved.

you may still get the complaint about port 443. If you look through the httpd.conf, you won’t be able to find 443. But, you will find the following:
Secure (SSL/TLS) connections
Include “conf/extra/httpd-ssl.conf”
Look in the httpd-ssl.conf file, and replace 443 with some other port.
Enjoy!

Related

http error 404.0 - not found in xampp server

I've just downloaded xampp got everything set up and when i click admin button it takes to a webpage
and has the error sign
http error 404.0- Not found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
http://localhost/phpmyadmin/
Suzan, I can recommend you to use Wampserver instead of Xampp. Wampserver always works when ports 80, 3306 are NOT in use. Else you would have to set the VirtualHost to listen to port 8080 or any other free port. For that I can give you instructions if you need.
I think that a 404 can only be caused by the webserver alias or port configuration. Check the XAMPP management window and check whether Apache is running on 80 or 1337 or another port. If you find the port number, type:
http://localhost:PORTNUMBERHERE/phpmyadmin
When the webserver is running on port 80 or 443, you would not have to type
http://localhost:80/phpmyadmin, because that is the default protocol. Port 443 is the default protocol for SSL, so you would get https://localhost/phpmyadmin instead of https://localhost:443/phpmyadmin. With any other number you have to type it.

Setting up MySQL database behind a VPN address

I have a regular MySQL server running with XAMPP at port 3306 and accessible by my internet ip aswell my local ip (127.0.0.1), the ports are forwarded in my router. An account set up to be accessed from any IP, Everything works fine.
I'm trying to make this same server be accessible by AirVPN DNS address. So I've followed AirVPN instructions to remove the forwarded ports in my router and forward a new port at their VPN with a random number (lets go with 1111) with local port as 3306 and DNS named as xxx.airdns.org
So I open MySQL with XAMPP under port 3306, nothing changed in config file. I run the AirVPN port checker over 1111 and it signals as open. I also try at other sites that checks ports and signals open at xxx.airdns.org:1111
Though when I try to make a connection as usual it returns error (10060): Can't connect to MySQL server on 'xxx.airdns.org' (10060)
Resolutions I've tried:
Switch port values in MySQL config files matching with the ports open in AirVPN
bound address to VPN adapter bind-address="10.6.114.48"
repeated the options above in all different kind of port combinations and addresses
Disabled Firewall on Ethernet adapter of VPN as described here
I couldn't achieve success in this task. I'm looking for some enlightment so I can understand the process.
EDIT:
The connection is set only to TCP protocol. A port check done through airVPN and is registered at XAMPP & FIREWALL logs as accepted connections. Though trying to connect from a client I got no log from Xampp or Firewall, it gets timed out.
Sorry for "answer" type not just comment, but i dont have enough reputation here :)
Maybe the protocol ( TCP/UDP ) is your issue.
If you use UDP on your airVPN better check forwarding on your router - most of them
by default sets TCP only. Otherwise maybe change to TCP on your airVPN.
ISP provider often filter this protocol.
Issue: Consider that you can't connect to a service running "behind" some VPN server from a machine that's connected to that very same VPN service.
Solution: Connect from another machine to test your service properly.

Prevent apache to free the port 80

I have installed WAMP2.4 on windows 7 - 64bit. Its working fine and also i am able to connect it from localhost and from outside. Skype, IIS or VMware is not installed on the system. In
"services" the mysql and apache both are set to start automatically and are in started state. All services of WAMP is working and the icon is green.
Now, the problem is, the website goes down very often. When its down, the WAMP icon is still green, mysql and apache are still in "started" state. Then I just click on "Restart all services" every time and it starts working.
When its down, I checked the "Test port 80" of Apache>Services and it says that the port is not being used. Same time when i check port 80 with "netstat" on command prompt it show the process id of apache. If i don't do any action, after some time it start working. Is there any way to set Apache not to free the port 80? Or, any batch command which check the port 80 and if its free, restart the wamp services?
I have heard of this issue before now I come to think of it.
Try adding these 2 parameters to your httpd.conf file.
Put them after this line that should already exists in httpd.conf # EnableSendfile on
# AcceptFilter: Windows, none uses accept () instead of AcceptEx ()
# And do not recycle sockets between connections. This is useful
# Network interfaces for which the pilot is defective, and for
# Some network providers like vpn pilots or filters
# Anti-spam, anti-virus or anti-spyware.
AcceptFilter http none
AcceptFilter https none
With luck this should stop Apache from hanging, which I think is your main problem.

How to configure web administration module in ejabberd (2.1.x)?

Hii All Thanks for viewing this issue please help me i am trying to configure ejabberd from last 3 days but still not having any solution i added
these code in ejabberd.cfg
{hosts, ["localhost","server.mobulous.in"]}.
{acl, admin, {user, "admin", "server.mobulous.in"}}.
is this a issue of server port because i install zpanel on my vps server and its running on this ip http://119.18.63.178/
So do i need to change server.mobulous.in to this IP?
and also i am not able to access this and this
http://119.18.63.178:5280/admin
http://server.mobulous.in:5280/admin
Help me please i am new to vps and dont know to much
Thanks in advance
[root#server ~]# tail /var/log/ejabberd/ejabberd.log
I(<0.465.0>:ejabberd_listener:166) : Reusing listening port for 5222
=INFO REPORT==== 2014-03-21 13:27:39 ===
I(<0.466.0>:ejabberd_listener:166) : Reusing listening port for 5269
=INFO REPORT==== 2014-03-21 13:27:39 ===
I(<0.467.0>:ejabberd_listener:166) : Reusing listening port for 5280
=INFO REPORT==== 2014-03-21 13:27:39 ===
I(<0.36.0>:ejabberd_app:72) : ejabberd 2.1.13 is started in the node ejabberd#server
"Hosts" in ejabberd
The hosts configuration clause in ejabberd has unfortunate name as it really denotes XMPP domains your server hosts, not the name (or IP address) of the machine it's running on. So if your users will have JIDs of the form sismaster#server.mobulous.in, then you only need to have server.mobulous.in in the hosts clause.
Note that if your XMPP domain is mobulous.in you'll have to properly setup DNS SRV records for your server so that records for mobulous.in point to server.mobulous.in.
Web administration interface in ejabberd
In order for web administration interface to work on a certain port, the web_admin module has to be enabled in the configuration of that port's listener.
For instance, in order to have web admin interface served on 5280 you need to have something like this in your configuration file:
{5280, ejabberd_http, [web_admin]},
I've recently helped someone on the ejabberd mailing list with the similar problem; you can read my rather extensive message here.

Starting a service which may have port conflicts with existing service

Is there any way to start a service and force a service that is already running to stop if it uses the port that the service I want to start is going to be using?
I'm going to be installing apache and mysql, and want the services to be running without having to manually stopping existing services that use port 80/3306 such as existing apache/mysql services.
I'm using NSIS to make my installer.
To find the process listening on port 80 perhaps you could do the equivilent of this from the command line:
c:\>netstat -aon | findstr 0.0:80
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 3488
3488 is the process id. Not sure what APIs netstat is using though.
Without disabling or reconfiguring the service that is already using the desired port is still going to cause problems on system restart. The best bet might be to abort the install if the port is already in use. To check if a port is in use, use this NSIS TCP plugin.