Made Simple. [email protected] Join our newsletter for Bocoup news you can use! In copying the config file over for that server that's being virtualized, I neglected to notice that the error log directory had been changed. apachectl stop resolved the issue. http://gsbook.org/could-not/apache-could-not-bind-to-address-ubuntu.php
asked 4 years ago viewed 55832 times active 10 days ago Linked 0 There's an nginx process listening on port 80 and I don't know how it got there Related 0Apache Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. If you're binding on *:PORT, you do not need to also bind on a specific IP. A question can only have one accepted answer. find this
I don't know that it would do that, but it seems probable –RobotHumans Apr 2 '13 at 15:41 Have you tried the suggestions from Starting apache fails (could not I'm experiencing it now and haven't found a solution. There seems to be some serious bugs with apache2/Ubuntu 12.10 that causes apache2 to start and hang. Make_sock Could Not Bind To Address 80 Windows I added Listen 80 to ports.conf and still was unable to start Apache.
So we'll have to tell it to not do that. This was the problem in my case. This next example uses netstat, grep, and kill to root out & fix the problem. # try to start apache, receive error ~: sudo /etc/init.d/apache2 start * Starting web server apache2 http://stackoverflow.com/questions/10160339/starting-apache-fails-could-not-bind-to-address-0-0-0-080 In your virtualhost, Use * and not the IP.
Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the Make_sock: Could Not Bind To Address [::]:80 Mac Remember to dig in and evaluate server problems instead of just rebooting. McClane is a NYPD cop. share|improve this answer answered May 17 '13 at 12:23 user1004829 311 add a comment| up vote 3 down vote I had the same problem For me, apache was already running but
We'd love to hear from you. You can manually stop the server by determining the PID of the parent process and sending it a SIGTERM. Make_sock: Could Not Bind To Address 0.0.0.0:80 Windows share|improve this answer edited Dec 26 '15 at 16:49 Suriyaa 1078 answered Aug 28 '13 at 6:55 Stef K 3,24611627 2 Really excellent explanation!!! –Artisan Aug 28 '13 at 9:52 Make_sock: Could Not Bind To Address [::]:443 share|improve this answer answered Apr 4 '13 at 14:52 Gunner Barnes 129117 2 I also had duplicate Listen 80 commands in both my httpd.conf and ports.conf –Gunner Barnes Apr 4
How to select a number from all the integers list? Reboot and enjoy! If not specified, https is the default for port 443 and http the default for all other ports. Check This Out On Linux/Unix run $> netstat -plant $> # or $> sudo lsof -i:80 On Windows run $> netstat -ano On Mac OS X / FreeBSD run $> netstat -Wan |grep 80
Either change the boolean, disable selinux, or set it for permissive with setenforce 0. Make_sock Could Not Bind To Address 80 Ubuntu The Apache error log may have more information. [fail] server permissions apache2 share|improve this question edited Aug 28 '13 at 7:12 Andrea Corbellini 9,19713254 asked Aug 28 '13 at 5:43 Artisan This means that in order to use one, you must have the authority to change - access basic system settings.
Community Tutorials Questions Projects Tags Newsletter RSS Distros & One-Click Apps Terms, Privacy, & Copyright Security Report a Bug Get Paid to Write Shop Almost there! [email protected]:~$ sudo update-rc.d apache2 defaults //(don't do this) Adding system startup for /etc/init.d/apache2 ... /etc/rc0.d/K20apache2 -> ../init.d/apache2 /etc/rc1.d/K20apache2 -> ../init.d/apache2 /etc/rc6.d/K20apache2 -> ../init.d/apache2 /etc/rc2.d/S20apache2 -> ../init.d/apache2 /etc/rc3.d/S20apache2 -> ../init.d/apache2 /etc/rc4.d/S20apache2 -> Why is using service the preferred method? –Holloway Oct 15 '14 at 20:34 They are Upstart directives, check this question and answers askubuntu.com/q/19320/12218 and for more detailed view check 13 Permission Denied Make_sock Try shutting down skype, or running: sudo /etc/init.d/nginx stop share|improve this answer edited Jul 27 at 13:35 answered Apr 4 '13 at 19:31 Benjamin Crouzier 16.7k2488153 3 Thanks, skype was
But where should I comment Listen 443: ssl.comf or 00-ssl.conf?UPD I have tried /etc/httpd/conf.modules.d/00-ssl.con and it worked for me. Use the FAQ Luke Top Neznauskas Posts: 6 Joined: 2015/05/09 11:19:54 Location: Chernihiv, Ukraine Re: Httpd restart fails - could not bind to address Quote Postby Neznauskas » 2015/05/09 14:33:51 Code: The solution is to Listen only once. http://gsbook.org/could-not/make-sock-could-not-bind-to-address-apache.php Time to stop apache2: [email protected]:~# /usr/sbin/apache2ctl stop httpd (no pid file) not running A big clue!
apache port kill netstat share|improve this question edited Apr 15 '12 at 8:17 asked Apr 15 '12 at 7:39 rfc1484 2,589103566 2 So what is pid 1176? (ps -wlp1176) –geekosaur If you want httpd to handle IPv4 and IPv6 connections with a minimum of sockets, which requires using IPv4-mapped IPv6 addresses, specify the --enable-v4-mapped configure option. --enable-v4-mapped is the default be killed in the war vs be killed by the war Why is credit card information not stolen more often? Overview Special IPv6 Considerations Specifying the protocol with Listen How This Works With Virtual Hosts See alsoVirtual HostsDNS IssuesComments Overview Related ModulesRelated Directivescorempm_common
Thanks! 0 bwidyasanyata April 30, 2015 I also have the same problem too on my Ubuntu 14.04. By default only root can open ports below 1024. –onse Apr 2 '13 at 15:02 Yes, I am. Are zipped EXE files harmless for Linux servers?