Debian+apache2 Server

Source: Internet
Author: User
Tags touch command

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.