Version
Debian 9.4
Apache 2.4
Error-Invalid command ' ~ ~ '
$ sudo service apache2 status (中略) 7月 05 09:46:40 hwajeon apachectl[9560]: AH00526: Syntax error on line 33 of /etc/apache2/sites-en 7月 05 09:46:40 hwajeon apachectl[9560]: Invalid command ‘DavLockDB‘, perhaps misspelled or define (中略)
"/etc/apache2/mods-enabled/" has no "dav.load/dav_fs.conf/dav_fs.load/dav_lock.load".
This command can be confirmed.
$ ls -l /etc/apache2/mods-enabled/
"Dav.load/dav_fs.conf/dav_fs.load/dav_lock.load" in "/etc/apache2/mods-available/".
$ ls /etc/apache2/mods-available/ | grep davdav.loaddav_fs.confdav_fs.loaddav_lock.load
Use the ln command to link. This is a symbolic link.
$ sudo ln -s /etc/apache2/mods-available/dav_fs.conf /etc/apache2/mods-enabled/$ sudo ln -s /etc/apache2/mods-available/dav_fs.load /etc/apache2/mods-enabled/$ sudo ln -s /etc/apache2/mods-available/dav_lock.load /etc/apache2/mods-enabled/
If it were me, I would have to "auth_digest.load". Use the same method to link it.
Where is "Davlock"?
(中略)DAVLockDB ${APACHE_LOCK_DIR}/DAVLock(中略)
DAVLOCKDB should be ${apache_lock_dir}/davlock.
$ less /etc/apache2/envvars
(中略)export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX(中略)
Understand the "Apache_lock_dir" is "/var/lock/apache2".
If "/var/lock/apache2/" does not have "davlock", use the touch command to make the file. The owner of the file and the group to which it belongs must be www-data.
$ sudo touch /var/lock/apache2/DAVLock $ sudo chown www-data:www-data /var/lock/apache2/DAVLock$ ls -l /var/lock/apache2/DAVLock-rw-r--r-- 1 www-data www-data 0 7月 5 10:16 /var/lock/apache2/DAVLock
Restart Apach
Reference documents
Apache httpサーババージョン2.4ドキュメント-Apache httpサーババージョン2.4
11.2.ウェブサーバ (HTTP)-Debian manager ハンドブック
Debian+apache2 Server