[MacPorts] #36101: apache2 @2.2.22_2 startup item
#36101: apache2 @2.2.22_2 startup item ---------------------+-------------------------------- Reporter: grrr@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: apache2 | Port: apache2 ---------------------+-------------------------------- On OS X 10.8.1 after every reboot apache2 is not starting for me, and I have activated the LaunchDaemon. {{{ $ sudo port load apache2 org.macports.apache2: Already loaded }}} Still no httpd. Running {{{ $ sudo apachectl start }}} successfully starts Apache, until reboot. I've tried uninstalling and reinstalling apache2, running the launchctl load/unload commands on org.macports.apache2.plist, and checked my Apache config with apachectl configtest. Other MacPorts startup items work (MySQL5, dnsmasq), just not Apache. -- Ticket URL: <https://trac.macports.org/ticket/36101> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36101: apache2 @2.2.22_2 startup item ----------------------+-------------------------- Reporter: grrr@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion Port: apache2 | ----------------------+-------------------------- Changes (by ryandesign@…): * keywords: apache2 => mountainlion * owner: macports-tickets@… => ryandesign@… Comment: Interesting. Since upgrading to Mountain Lion apache2 was also not starting for me and I had not yet spent the time to investigate why. If anybody knows why please let me know. Does the console say anything about it? -- Ticket URL: <https://trac.macports.org/ticket/36101#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36101: apache2 @2.2.22_2 startup item ----------------------+-------------------------- Reporter: grrr@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion Port: apache2 | ----------------------+-------------------------- Comment (by grrr@…): I don't see anything in the console, even after changing launchctl's log level (sudo launchctl log level debug). -- Ticket URL: <https://trac.macports.org/ticket/36101#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36101: apache2 @2.2.22_2 startup item ----------------------+-------------------------- Reporter: grrr@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion Port: apache2 | ----------------------+-------------------------- Comment (by grrr@…): I apparently fixed this when changing my local dnsmasq config. In /etc/hosts I added my servername (gala) to the loopback entry: {{{ 127.0.0.1 localhost gala }}} and then I changed ServerName in /opt/local/apache2/conf/httpd.conf to match: {{{ ServerName gala }}} Apache now starts at boot for me. -- Ticket URL: <https://trac.macports.org/ticket/36101#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36101: apache2 @2.2.22_2 startup item ----------------------+-------------------------- Reporter: grrr@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion Port: apache2 | ----------------------+-------------------------- Comment (by j+macports@…): I've had this same problem on Lion for many months. Nothing obvious in the Console related to either launchd/apache/httpd. Ryan, if there's anything I can do or test or any logs I can try and get to help you let me know. -- Ticket URL: <https://trac.macports.org/ticket/36101#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36101: apache2 @2.2.22_2 startup item ----------------------+-------------------------- Reporter: grrr@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion Port: apache2 | ----------------------+-------------------------- Comment (by j+macports@…): I'm starting to wonder if the reason apache2 fails to actual start despite the fact that launchctl shows that the port has loaded is that the DNS is not fully operational at the time apache2 tries to start and thus fails because of servername mis-match (my machine is it's own DNS server with an internal-only domain name). Does anyone know if there is a good way to somehow delay when the apache2 launchd item tries to execute? -- Ticket URL: <https://trac.macports.org/ticket/36101#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36101: apache2 @2.2.22_2 startup item ----------------------+-------------------------- Reporter: grrr@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion Port: apache2 | ----------------------+-------------------------- Comment (by ctreleaven@…): Another workaround is to 'sudo port unload apache2' and then 'sudo port load apache2'. -- Ticket URL: <https://trac.macports.org/ticket/36101#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts