macosapachehomebrewhttpd.conf

AH00136: Server MUST relinquish startup privileges before accepting connections. Please ensure mod_unixd or other system security module is loaded


Can't start httpd Apache/2.4.29 (Unix) on macOS Sierra 10.12.6. httpd and apache are installed with brew.

in /var/log/apache2/error_log I always see:

AH00136: Server MUST relinquish startup privileges before accepting connections.  Please ensure mod_unixd or other system security module is loaded.
AH00016: Configuration Failed

Can somebody help me what is wrong?


Solution

  • In the httpd.conf you have to place or un-comment the line:

    LoadModule unixd_module lib/httpd/modules/mod_unixd.so

    This is a required shared object file for Unix-family platforms. Then restart apache:

    brew services restart httpd