Opened 4 years ago

Closed 3 years ago

#52617 closed defect (fixed)

Apache2 won't start on Sierra

Reported by: voodoodrul@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: sierra Cc: Schamschula (Marius Schamschula), pixilla (Bradley Giesbrecht)
Port: apache2

Description

Starting from a clean Sierra install, and installing apache2, sudo port load apache2 runs and httpd attempts to start. The process stays running for a few seconds and then dies. Nothing is wrong with the config file and this behavior occurs on multiple machines. Worked fine in El Capitan, not so much in Sierra. No obvious errors logged. Manually starting httpd by calling the process directly and leaving it running in the terminal works fine.

Change History (6)

comment:1 Changed 4 years ago by larryv (Lawrence Velázquez)

Keywords: apache2 removed
Owner: changed from macports-tickets@… to ryandesign@…

comment:2 Changed 4 years ago by voodoodrul@…

Correction: manually starting httpd from the terminal (sudo /opt/local/apache2/bin/httpd -k start) does *not* work. Same behavior. Showing startup errors, I only see modules loading, a "hang" for about 3 seconds, and then crash to prompt:

Jesses-MacBook-Pro:bin jesse.skrivseth$ sudo /opt/local/apache2/bin/httpd -k start -e debug
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module authn_file_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module authn_dbm_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module authn_anon_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module authn_dbd_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module authn_default_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module authn_alias_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module authz_host_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module authz_user_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module authz_dbm_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module authz_owner_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module authz_default_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module auth_basic_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module auth_digest_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module file_cache_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module cache_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module disk_cache_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module mem_cache_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module dbd_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module dumpio_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module reqtimeout_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module ext_filter_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module include_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module filter_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module substitute_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module deflate_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module log_config_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module log_forensic_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module logio_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module env_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module mime_magic_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module cern_meta_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module expires_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module headers_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module ident_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module usertrack_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module unique_id_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module setenvif_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module version_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module proxy_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module proxy_connect_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module proxy_ftp_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module proxy_http_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module proxy_scgi_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module proxy_ajp_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module proxy_balancer_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module ssl_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module mime_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module dav_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module status_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module autoindex_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module asis_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module info_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module cgi_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module dav_fs_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module vhost_alias_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module negotiation_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module dir_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module imagemap_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module actions_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module speling_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module userdir_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module alias_module
[Sat Oct 15 13:11:44 2016] [debug] mod_so.c(246): loaded module rewrite_module
Jesses-MacBook-Pro:bin jesse.skrivseth$

comment:3 Changed 4 years ago by voodoodrul@…

Disabling mod_unique_id allows it to start.

[Sat Oct 15 13:22:53 2016] [alert] (EAI 8)nodename nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "Jesses-MacBook-Pro.local"
Configuration Failed

Although my ServerName was set to localhost, I went ahead and added the FQDN for my hostname to /etc/hosts. With my FQDN in /etc/hosts, it starts even with mod_unique_id enabled.

Last edited 4 years ago by voodoodrul@… (previous) (diff)

comment:4 Changed 4 years ago by xmeltrut (Chris Worfolk)

I encountered the same problem. Commenting out mod_unique_id in httpd.conf fixed it for me.

comment:5 Changed 3 years ago by jmroot (Joshua Root)

Cc: Schamschula pixilla added

comment:6 Changed 3 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: newclosed

mod_unique_id is commented out by default under apache2 2.4.x.

Note: See TracTickets for help on using tickets.