This page is English translation of this Japanese Page. Many people are accessing my “Invalid command LanguagePriority” page from foreign countries, so I made this page.
I’m building a FreeBSD server as new.
About previous servers, I have used Apache 2.2.x version and they are working now. This time i decided to use Apache 2.4 line because this server is a test machine not production one.
I removed comment ‘#’ Mark from httpd.conf “extra/httpd-multilang-errordoc.conf” line to turned on multi language message function, this is same way as Apache 2.2 building.
# Multi-language error messages Include etc/apache24/extra/httpd-multilang-errordoc.conf
Then following message appeared when Apache starting. What is this? Why?
/usr/local/etc/rc.d # ./apache24 start Performing sanity check on apache24 configuration: AH00526: Syntax error on line 31 of /usr/local/etc/apache24/extra/httpd-multilang-errordoc.conf: Invalid command 'LanguagePriority', perhaps misspelled or defined by a module not included in the server configuration Starting apache24. AH00526: Syntax error on line 31 of /usr/local/etc/apache24/extra/httpd-multilang-errordoc.conf: Invalid command 'LanguagePriority', perhaps misspelled or defined by a module not included in the server configuration ./apache24: WARNING: failed to start apache24
I edited httpd.conf file, but I didn’t touch “httpd-multilang-errordoc.conf” file. The file is completely default and original source!! What is “Invalid command LanguagePriority.” I have never seen the message before.
On Apache 2.2 server, I don’t remember to edit httpd-multilang-errordoc.conf file. It means something apache specification changed?
Then I read httpd-multilang-errordoc.conf file, and found header description.
# Required modules: mod_alias, mod_authz_core, mod_authz_host, # mod_include, mod_negotiation
If I want to use httpd-multilang-errordoc.conf file, I have to remove some comment marks from httpd.conf file. I reviewed httpd.conf file and found mod_include and mod_negotiation is commented!!! This is the cause of the error message.
After removing comments from their lines and start Apache, then it began to work.
/usr/local/etc/rc.d # ./apache24 start Performing sanity check on apache24 configuration: Syntax OK Starting apache24.
If previous version configuration file can be used without any modification, I won’t waste much time….. Major version up always give me something trouble. I don’t like major version up of software…..