2006年10月11日
apache2.0からapache2.2へ入れ替えた時の影響
$ /usr/sbin/apache2ctl configtest
Syntax error on line 31 of /etc/apache2/sites-enabled/hoge.hansode.org:
Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration
何?!
$ for i in /usr/lib/apache2/modules/*; do strings $i | grep -q -i AuthUser && echo $i; done
/usr/lib/apache2/modules/mod_authn_file.so
$ ls /etc/apache2/mods-available/authn_file.load
/etc/apache2/mods-available/authn_file.load
なるほど
$ sudo /usr/sbin/a2enmod authn_file
Module authn_file installed; run /etc/init.d/apache2 force-reload to enable.
$ /usr/sbin/apache2ctl configtest
Syntax OK
別モジュールになっていた。
$ /usr/sbin/apache2ctl configtest
Syntax error on line 31 of /etc/apache2/sites-enabled/hoge.hansode.org:
Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration
何?!
$ for i in /usr/lib/apache2/modules/*; do strings $i | grep -q -i AuthUser && echo $i; done
/usr/lib/apache2/modules/mod_authn_file.so
$ ls /etc/apache2/mods-available/authn_file.load
/etc/apache2/mods-available/authn_file.load
なるほど
$ sudo /usr/sbin/a2enmod authn_file
Module authn_file installed; run /etc/init.d/apache2 force-reload to enable.
$ /usr/sbin/apache2ctl configtest
Syntax OK
別モジュールになっていた。