Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Debian+Apache2 server

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report