Summary: | net-analyzer/nagios-3.3.1: apache-2.4.3 fails to start with Syntax error on line 6 of /etc/apache2/modules.d/99_nagios3.conf | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Unspecified | Assignee: | Sysadmin Bugs <sysadmin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andrew, hydrapolic |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 468302 |
Description
Juergen Rose
2012-10-15 11:33:46 UTC
I looked at http://httpd.apache.org/docs/trunk/upgrading.html and replaced Order allow,deny Allow from 127.0.0.1 141.89.194.1/24 with Require host 127.0.0.1 141.89.194.1/24 I hope that this correct. At least I can start apache2 again. *** Bug 447218 has been marked as a duplicate of this bug. *** Bringing in the current nagios-plugins maintainer. What's the best way forward here? The Order directive was deprecated in 2.4 in favor of new directives from mod_authz_host, but a mod_access_compat module is provided to ease compatibility issues. On 64 bit installs 99_nagios3.conf should use the lib64 directory: ScriptAlias /nagios/cgi-bin/ /usr/lib64/nagios/cgi-bin/ the default is: ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi-bin/ for Apache 2.4.x installs the file /etc/apache2/modules.d/99_nagios3.conf show be: <IfDefine NAGIOS> ScriptAlias /nagios/cgi-bin/ /usr/lib64/nagios/cgi-bin/ <Directory "/usr/lib64/nagios/cgi-bin/"> AllowOverride AuthConfig Options ExecCGI AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/auth.users Require valid-user </Directory> Alias /nagios /usr/share/nagios/htdocs <Directory "/usr/share/nagios/htdocs"> AllowOverride AuthConfig AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/auth.users Require valid-user #Order allow,deny #Allow from all </Directory> </IfDefine> the default config file use "Allow from ???" which isn't supported with apache-2.4! Permissions also need to be changed: chown nagios.apache /usr/share/nagios/htdocs chown nagios.nagios /usr/share/nagios/htdocs/* chown nagios.nagios /usr/lib64/nagios/cgi-bin chown nagios.nagios /usr/lib64/nagios/cgi-bin/* This should be fixed in the latest nagios-4.x ebuild. I've added a build-time dependency on apache-2.4.x (needed for other reasons, but prevents apache-2.2.x as well), and updated the config file using the newer syntax. Please reopen if you have any more issues. |