Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
systemd[1]:无法启动LSB:Apache2 web服务器_Apache_Svn_Debian_Systemd_Lsb - Fatal编程技术网

systemd[1]:无法启动LSB:Apache2 web服务器

systemd[1]:无法启动LSB:Apache2 web服务器,apache,svn,debian,systemd,lsb,Apache,Svn,Debian,Systemd,Lsb,我有一个ApacheWeb(版本2.4.10)服务器运行在Debian8(Jessie)上。它主要用作SVN存储库服务器。 几周后,它一直运行良好,当我试图从Web浏览器列出SVN回购协议时,突然出现了一个内部错误,如下所示: 正如您所看到的,身份验证仍然可以正常工作 我运行了以下两个命令: systemctl状态apache2.service 和 journalctl-xn 但这对我没什么帮助,也许我错过了什么? 我没有修改最近与Apache相关的任何配置文件(甚至没有修改任何其他配置文件

我有一个ApacheWeb(版本2.4.10)服务器运行在Debian8(Jessie)上。它主要用作SVN存储库服务器。 几周后,它一直运行良好,当我试图从Web浏览器列出SVN回购协议时,突然出现了一个内部错误,如下所示:

正如您所看到的,身份验证仍然可以正常工作

我运行了以下两个命令: systemctl状态apache2.service 和 journalctl-xn

但这对我没什么帮助,也许我错过了什么? 我没有修改最近与Apache相关的任何配置文件(甚至没有修改任何其他配置文件):既没有修改主Apache conf文件,也没有修改任何vHost conf文件。 我尝试重新启动Apache,它确实重新启动了,但Web服务器仍然遇到内部错误

error.log:

[Sun Jan 31 18:36:17.372502 2016] [core:notice] [pid 27449:tid 140087289513856] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 31 18:37:07.641329 2016] [mpm_event:notice] [pid 27449:tid 140087289513856] AH00491: caught SIGTERM, shutting down
[Sun Jan 31 18:38:31.156131 2016] [wsgi:warn] [pid 1049:tid 140557851056000] mod_wsgi: Compiled for Python/2.7.8.
[Sun Jan 31 18:38:31.156330 2016] [wsgi:warn] [pid 1049:tid 140557851056000] mod_wsgi: Runtime using Python/2.7.9.

[Sun Jan 31 18:38:31.157222 2016] [mpm_event:notice] [pid 1049:tid 140557851056000] AH00489: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations

[Sun Jan 31 18:38:31.157241 2016] [core:notice] [pid 1049:tid 140557851056000] AH00094: Command line: '/usr/sbin/apache2'

[Sun Jan 31 19:21:39.401930 2016] [mpm_event:notice] [pid 1049:tid 140557851056000] AH00491: caught SIGTERM, shutting down

[Sun Jan 31 19:22:35.038612 2016] [wsgi:warn] [pid 1313:tid 139813423814528] mod_wsgi: Compiled for Python/2.7.8.

[Sun Jan 31 19:22:35.038672 2016] [wsgi:warn] [pid 1313:tid 139813423814528] mod_wsgi: Runtime using Python/2.7.9.

[Sun Jan 31 19:22:35.039592 2016] [mpm_event:notice] [pid 1313:tid 139813423814528] AH00489: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations

[Sun Jan 31 19:22:35.039611 2016] [core:notice] [pid 1313:tid 139813423814528] AH00094: Command line: '/usr/sbin/apache2'

[Sun Jan 31 19:24:57.303622 2016] [mpm_event:notice] [pid 1313:tid 139813423814528] AH00491: caught SIGTERM, shutting down

[Sun Jan 31 19:26:20.336578 2016] [wsgi:warn] [pid 1050:tid 140178825381760] mod_wsgi: Compiled for Python/2.7.8.

[Sun Jan 31 19:26:20.336805 2016] [wsgi:warn] [pid 1050:tid 140178825381760] mod_wsgi: Runtime using Python/2.7.9.

[Sun Jan 31 19:26:20.337601 2016] [mpm_event:notice] [pid 1050:tid 140178825381760] AH00489: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations

[Sun Jan 31 19:26:20.337617 2016] [core:notice] [pid 1050:tid 140178825381760] AH00094: Command line: '/usr/sbin/apache2'

[Sun Jan 31 19:31:24.663351 2016] [mpm_event:notice] [pid 1050:tid 140178825381760] AH00491: caught SIGTERM, shutting down

[Sun Jan 31 19:31:25.827873 2016] [wsgi:warn] [pid 1208:tid 139958437914496] mod_wsgi: Compiled for Python/2.7.8.

[Sun Jan 31 19:31:25.827919 2016] [wsgi:warn] [pid 1208:tid 139958437914496] mod_wsgi: Runtime using Python/2.7.9.

[Sun Jan 31 19:31:25.828655 2016] [mpm_event:notice] [pid 1208:tid 139958437914496] AH00489: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations

[Sun Jan 31 19:31:25.828679 2016] [core:notice] [pid 1208:tid 139958437914496] AH00094: Command line: '/usr/sbin/apache2'
这可能来自mod_wsgi正在运行的Python版本,它与mod_wsgi显然期望的不同吗?

尝试两个命令:

sudo apt-get purge apache2 

sudo apt-get install apache2

之后,使用systemctl status apache2检查apache的状态

这些命令解决了我的问题:

sudo apt-get remove apache2 

sudo apt-get install apache2
注意:如果您使用
purge
作为另一个答案,您应该再次设置所有Apache配置,但当您使用
remove
时,它只会删除Apache的核心,安装后您不需要更多