Get the App
SLTechnology News&Howtos  ›  Servers  › 

Debian+Apache2 server

Shulou Source: shulou.com Published: 2022-06-02 06:21:42 10月30日 Update

Version

Debian 9.4

Apache 2.4

Error-Invalid command'~'$sudo service apache2 status (medium) 09:46:40 hwajeon apachectl [9560]: AH00526: Syntax error on line 33 of / etc/apache2/sites-en July 05 09:46:40 hwajeon apachectl [9560]: Invalid command 'DavLockDB', perhaps misspelled or define (medium)

"/ etc/apache2/mods-enabled/" does not have "dav.load/dav_fs.conf/dav_fs.load/dav_lock.load".

This order can be confirmed.

$ls-l / etc/apache2/mods-enabled/

"dav.load/dav_fs.conf/dav_fs.load/dav_lock.load" is in "/ etc/apache2/mods-available/".

$ls / etc/apache2/mods-available/ | grep davdav.loaddav_fs.confdav_fs.loaddav_lock.load

Link with the ln command. 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 still have to "auth_digest.load". Just link in the same way.

Where should "DavLock" be? $less / etc/apache2/mods-enabled/dav_fs.conf (medium) DAVLockDB ${APACHE_LOCK_DIR} / DAVLock (medium)

DAVLockDB should be ${APACHE_LOCK_DIR} / DAVLock.

$less / etc/apache2/envvars (medium) export APACHE_LOCK_DIR=/var/lock/apache2 $SUFFIX (medium)

I see "APACHE_LOCK_DIR" is "/ var/lock/apache2".

If "/ var/lock/apache2/" does not have "DAVLock", use the touch command to do the file. The owner and group of the file 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 July 5 10:16 / var/lock/apache2/DAVLock restart Apach$ sudo service apache2 restart references

Apache HTTP / s /

11.2. Thank you for your information. (HTTP)-Debian Manager / Manager / manager / manager

Tags: Commands links files same references ownership owner document method version symbol manager this is error reference management server service Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Xiaomi NVidia Shulou Technology Docker