Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508258 - www-server/apache: 00_languages.conf installed when mod_negotiation is not enabled
Summary: www-server/apache: 00_languages.conf installed when mod_negotiation is not en...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-20 18:37 UTC by yegle
Modified: 2014-05-22 12:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yegle 2014-04-20 18:37:58 UTC
emerge --info www-server/apache result:
http://bpaste.net/show/219939/

I didn't enable mod_negotiation but /etc/apache2/modules.d/00_languages.conf is installed which uses a directive from mod_negotiation

# /etc/init.d/apache2 restart               
 * apache2 has detected an error in your setup:
AH00526: Syntax error on line 71 of /etc/apache2/modules.d/00_languages.conf:
Invalid command 'LanguagePriority', perhaps misspelled or defined by a module not included in the server configuration
 * ERROR: apache2 failed to start
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-04-20 18:51:16 UTC
That file contains

  <IfDefine LANGUAGE>

and everything is inside that define.

Any chance you have

  APACHE_OPTS="-D LANGUAGE"

set in your /etc/conf.d/apache2 file? If yes, remove the "-D LANGUAGE" string.
Comment 2 yegle 2014-04-20 18:53:55 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #1)
> That file contains
> 
>   <IfDefine LANGUAGE>
> 
> and everything is inside that define.
> 
> Any chance you have
> 
>   APACHE_OPTS="-D LANGUAGE"
> 
> set in your /etc/conf.d/apache2 file? If yes, remove the "-D LANGUAGE"
> string.

Yes indeed, this is the default configuration for a freshly installed Apache.

My suggestion is to generate /etc/conf.d/apache2 according to enabled use flags, like the way /etc/apache2/httpd.conf was generated.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-05-22 12:15:32 UTC
I've tested this with latest apache-2.2 and apache-2.4 ebuilds in portage and the only way to get "-D LANGUAGE" added to APACHE2_OPTS is by enabling APACHE2_MODULES="negotiation" or setting USE="apache2_modules_negotiation".
Feel free to reopen this bug once you've figured out how to reliably reproduce the reported problem.