Apache does not start - says the httpd module is loaded but not working

So, I worked with several virtual hosts on OS X 10.8.2. I am using the installation of Apache2 and MySQL to start name-based virtual hosts. They all worked great until last night. Suddenly, all my virtual hosts are redirected to the "Unable to connect to" page.

After scrolling through and ultimately checking the error logs, I came to the conclusion that Apache was actually not working. For example, ps aux | grep apache returns only the grep process. However, if I try to run sudo / usr / sbin / apachectl, I get "org.apache.httpd: already downloaded" in response.

I checked the httpd.conf file and it looks great. I do not see any changes. I also ran the syntax check command (which was slipping away from my brain at that moment) and it returned. The only thing I found in the error logs was the last thing that happened yesterday, February 21, and it says: "[Thu 21 21 21:46:02 2013] [notification] caught SIGTERM, closing it”

Since then, my Apache error logs contain nothing (because it does not work). I restarted, tried restarting apache; I completely lost why he thinks it works, although it is not.

Any ideas?

In / var / logs / system.log, when I try to start and restart Apache:

Feb 23 09:27:00 Baileys-MacBook-Pro com.apple.launchd[1] (org.apache.httpd[8766]): Exited with code: 1
Feb 23 09:27:00 Baileys-MacBook-Pro com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds
Feb 23 09:27:10 Baileys-MacBook-Pro com.apple.launchd[1] (org.apache.httpd[8767]): Exited with code: 1
Feb 23 09:27:10 Baileys-MacBook-Pro com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds
Feb 23 09:27:16 Baileys-MacBook-Pro.local sudo[8769]:   bailey : TTY=ttys000 ; PWD=/private/var/log ; USER=root ; COMMAND=/usr/sbin/apachectl start
Feb 23 09:27:20 Baileys-MacBook-Pro com.apple.launchd[1] (org.apache.httpd[8772]): Exited with code: 1
Feb 23 09:27:20 Baileys-MacBook-Pro com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds
Feb 23 09:27:20 Baileys-MacBook-Pro.local sudo[8773]:   bailey : TTY=ttys000 ; PWD=/private/var/log ; USER=root ; COMMAND=/usr/sbin/apachectl restart
Feb 23 09:27:20 Baileys-MacBook-Pro com.apple.launchd[1] (org.apache.httpd[8777]): Exited with code: 1
Feb 23 09:27:20 Baileys-MacBook-Pro com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds
Feb 23 09:27:26 Baileys-MacBook-Pro.local sudo[8778]:   bailey : TTY=ttys000 ; PWD=/private/var/log ; USER=root ; COMMAND=/usr/bin/vi system.log

This problem persists after a reboot. It has not started since then, but it believes that the httpd module is loaded.

Google, ... - , Apache , ? ; , Apache , , , Apache ?



. ServerFault. , ServerFault, Apache StackOverflow, Apache Stack.

+5
4

(kinda), Apache, , Apache ( 80). , :

sudo lsof -i tcp:80 | grep LISTEN

: , : Apache , , : :

sudo /usr/sbin/httpd -k start -e Debug -E /dev/stdout

(- 80), :

(48)Address already in use: make_sock: could not bind to address 0.0.0.0:80
+19

:

(2) : httpd: ////apache2/error_log.

apache2 .

+1

robertklep:

sudo/usr/sbin/httpd -k start -e -E/dev/stdout

. , , . SSL .

. httpd ( ). debug, , httpd .

, ...

0

, , , , 2c .

, . , httpd.conf . , -. , httpd.conf. , .

Regarding the question of port 80, I saw skype wrap the port, as well as 443 (God knows why), and I had better results after I turned it off. Make sure you do not have skype running on port 80.

0
source

All Articles