apache2 重启问题

apache2 重启问题

当我重新启动 apache2 时出现以下错误。

$ sudo service apache2 restart
 * Restarting web server apache2                                                                                                                                                              [fail]
 * The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/mods-enabled/dav_svn.load: Cannot load /usr/lib/apache2/modules/mod_dav_svn.so into server: /usr/lib/apache2/modules/mod_dav_svn.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.

请帮我解决这个问题。

我也尝试安装 libapache2-mod-svn,出现以下错误。

$ sudo apt-get install libapache2-mod-svn
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  db5.3-util
The following NEW packages will be installed:
  libapache2-mod-svn
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/87.7 kB of archives.
After this operation, 440 kB of additional disk space will be used.
Selecting previously unselected package libapache2-mod-svn.
(Reading database ... 63832 files and directories currently installed.)
Preparing to unpack .../libapache2-mod-svn_1.8.10-1ubuntu2_i386.deb ...
Unpacking libapache2-mod-svn (1.8.10-1ubuntu2) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

此问题已解决。

首先我删除了 apache2

$ sudo apt-get 删除 apache2

然后我安装了 libapache2-mod-svn

$ sudo apt-get 安装 libapache2-mod-svn

问题就这样解决了。

谢谢大家的支持。

相关内容