I have Apache2 running on Cygwin on my Windows 7 computer. It doesn't do much, it just hosts some HTML documentation for my local (firewalled) LAN.
Oddly, it doesn't seem to start automatically even though its Startup type is automatic. However, when I start it manually, it works perfectly. Any idea why this might be?
- Apache version (
httpd2.exe -v
):Apache/2.2.23 (Unix)
- Cygwin version (
uname -a
):
CYGWIN_NT-6.1-WOW64 (hostname removed) 1.7.27(0.271/5/3) 2013-12-09 11:57 i686 Cygwin
In the middle of a bunch of events of my other Cygwin services entering the running state, there's an event of Apache entering the stopped state. For example:
The only thing I can find in the Application log looks like this:
The description for Event ID 0 from source httpd2 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
httpd2: PID 3384: `httpd2' service stopped, exit status: 1
/var/log/apache2/error_log
has stuff like this at successful manual startups only:
[Fri Jul 17 08:30:28 2015] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Jul 17 08:30:29 2015] [notice] Digest: generating secret for digest authentication ...
[Fri Jul 17 08:30:29 2015] [notice] Digest: done
[Fri Jul 17 08:30:29 2015] [warn] pid file /var/run/apache2/httpd2.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Jul 17 08:30:29 2015] [notice] Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.1e DAV/2 configured -- resuming normal operations
/var/log/httpd2.log
has stuff like this:
(125)Cannot assign requested address: make_sock: could not bind to address <my_172._ip>:80
no listening sockets available, shutting down
Unable to open logs
apache_error.log
?