我试过使用a2enmod启用mod mod_rewrite 。 然后,我将/etc/apache2/apache2.conf AllowOveride从None更新为All 。
当我尝试重新启动Apache时,我收到:我无法重新启动Apache Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details. Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details. 。
没有日志,systemctl返回: ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: failed (Result: exit-code) since Sat 2016-08-06 21:51:18 BST; 8min ago Process: 30175 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 20381 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS) Process: 31009 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE) ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: failed (Result: exit-code) since Sat 2016-08-06 21:51:18 BST; 8min ago Process: 30175 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 20381 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS) Process: 31009 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
任何想法出了什么问题?
这是一个普通的,确保你不会不小心将cr @ p粘贴到你的configuration文件中。 我不小心粘上了一条没有意识到的道路,这是不正确的语法,所以通过一个摇摆。
我尝试diff ,无法读取响应,因为我不习惯,所以拆分我的terminal,现在看configuration文件和昨天的备份 ,使得它更容易。
这篇文章的道德,备份,备份,备份!
仅供参考,我在我的系统上进行关键configuration文件的每小时,每日,每周,每月备份。 已经多次保存了我的培根。