无法重新启动 /etc/init.d/apache2 restart = 失败

无法重新启动 /etc/init.d/apache2 restart = 失败

安装 openssl ssl-cert 并按照教程中的说明设置所有内容后,我无法重新启动 apache2。我收到以下错误:

在此处输入图片描述

这是错误日志:

root@debian:/var/log/apache2# nano error.log
  GNU nano 2.2.4                                                  File: error.log

[Sat Dec 15 17:18:22 2012] [notice] Apache/2.2.16 (Debian) configured -- resuming normal operations
[Sat Dec 15 17:18:24 2012] [error] [client 192.168.56.1] File does not exist: /var/www/favicon.ico
[Sat Dec 15 17:22:03 2012] [notice] caught SIGTERM, shutting down
[Sat Dec 15 17:22:08 2012] [notice] Apache/2.2.16 (Debian) configured -- resuming normal operations
[Sat Dec 15 17:22:51 2012] [notice] caught SIGTERM, shutting down
[Sat Dec 15 17:22:58 2012] [notice] Apache/2.2.16 (Debian) configured -- resuming normal operations
[Sat Dec 15 17:23:23 2012] [notice] Graceful restart requested, doing restart
[Sat Dec 15 17:23:24 2012] [notice] Apache/2.2.16 (Debian) configured -- resuming normal operations
[Sat Dec 15 17:26:21 2012] [error] [client 192.168.56.1] File does not exist: /var/www/index.phg
[Sat Dec 15 17:26:21 2012] [error] [client 192.168.56.1] File does not exist: /var/www/favicon.ico
[Sat Dec 15 17:27:08 2012] [notice] caught SIGTERM, shutting down
[Sat Dec 15 17:27:10 2012] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze14 with Suhosin-Patch configured -- resuming normal operations
[Sat Dec 15 17:27:15 2012] [error] [client 192.168.56.1] File does not exist: /var/www/favicon.ico
[Sat Dec 15 17:30:50 2012] [notice] caught SIGTERM, shutting down
[Sat Dec 15 17:30:53 2012] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze14 with Suhosin-Patch configured -- resuming normal operations
[Sat Dec 15 17:36:36 2012] [notice] Graceful restart requested, doing restart
[Sat Dec 15 17:36:37 2012] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze14 with Suhosin-Patch configured -- resuming normal operations
[Sat Dec 15 17:37:56 2012] [notice] Graceful restart requested, doing restart
[Sat Dec 15 17:37:57 2012] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze14 with Suhosin-Patch configured -- resuming normal operations
[Sat Dec 15 17:38:12 2012] [notice] caught SIGTERM, shutting down
[Sat Dec 15 17:38:14 2012] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze14 with Suhosin-Patch configured -- resuming normal operations
[Sat Dec 15 17:39:29 2012] [notice] Graceful restart requested, doing restart
[Sat Dec 15 17:39:31 2012] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze14 with Suhosin-Patch configured -- resuming normal operations
[Sat Dec 15 17:39:51 2012] [notice] caught SIGTERM, shutting down
[Sat Dec 15 17:39:52 2012] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze14 with Suhosin-Patch configured -- resuming normal operations
[Sat Dec 15 18:47:34 2012] [notice] Graceful restart requested, doing restart
[Sat Dec 15 18:47:44 2012] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze14 with Suhosin-Patch configured -- resuming normal operations
[Sat Dec 15 18:48:50 2012] [notice] caught SIGTERM, shutting down
[Sat Dec 15 18:48:52 2012] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze14 with Suhosin-Patch configured -- resuming normal operations
[Sat Dec 15 19:00:02 2012] [error] [client 192.168.56.1] File does not exist: /var/www/oscommerce/install
[Sat Dec 15 19:00:02 2012] [error] [client 192.168.56.1] File does not exist: /var/www/favicon.ico
[Sat Dec 15 19:00:46 2012] [error] [client 192.168.56.1] File does not exist: /var/www/favicon.ico
[Sat Dec 15 19:00:51 2012] [error] [client 192.168.56.1] File does not exist: /var/www/favicon.ico
[Sat Dec 15 19:00:53 2012] [error] [client 192.168.56.1] File does not exist: /var/www/favicon.ico
[Sat Dec 15 19:00:55 2012] [error] [client 192.168.56.1] PHP Warning:  mysql_connect(): Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/oscommerce/catalog/in$
[Sat Dec 15 19:00:55 2012] [error] [client 192.168.56.1] File does not exist: /var/www/favicon.ico
[Sat Dec 15 19:00:57 2012] [error] [client 192.168.56.1] File does not exist: /var/www/favicon.ico
[Sat Dec 15 19:01:01 2012] [error] [client 192.168.56.1] PHP Warning:  mysql_connect(): Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/oscommerce/catalog/in$
[Sat Dec 15 19:01:01 2012] [error] [client 192.168.56.1] File does not exist: /var/www/favicon.ico
[Sat Dec 15 19:01:13 2012] [error] [client 192.168.56.1] File does not exist: /var/www/favicon.ico
[Sat Dec 15 19:04:53 2012] [error] [client 192.168.56.1] PHP Deprecated:  Function eregi() is deprecated in /var/www/oscommerce/catalog/install/includes/functions/database.php on line 98, $
[Sat Dec 15 19:04:53 2012] [error] [client 192.168.56.1] PHP Deprecated:  Function eregi() is deprecated in /var/www/oscommerce/catalog/install/includes/functions/database.php on line 98, $
[Sat Dec 15 19:04:53 2012] [error] [client 192.168.56.1] PHP Deprecated:  Function eregi() is deprecated in /var/www/oscommerce/catalog/install/includes/functions/database.php on line 98, $
[Sat Dec 15 19:04:53 2012] [error] [client 192.168.56.1] PHP Deprecated:  Function eregi() is deprecated in /var/www/oscommerce/catalog/install/includes/functions/database.php on line 98, $
[Sat Dec 15 19:04:53 2012] [error] [client 192.168.56.1] PHP Deprecated:  Function eregi() is deprecated in /var/www/oscommerce/catalog/install/includes/functions/database.php on line 98, $

答案1

您的文件中存在语法错误default-ssl。在文档中搜索所有提及的内容ifModule,并确保它们具有匹配的打开和关闭语句。在编辑器中启用语法突出显示可以帮助您更好地发现此类错误。

相关内容