首先 - 我已经查看并尝试了几种方法,包括
https://askubuntu.com/questions/94805/apache-server-not-starting/
我正在使用Ubuntu 14.04 64 位
我已经使用 serverfault 上的答案清除了
- 须藤服务 apache2 停止
- sudo apt-get --purge 删除 apache2 sudo apt-get 删除 apache2-common
- sudo apt-get autoremove
- whereis apache2(给出3个位置)
- 须藤 rm -rf /etc/apache2
- 须藤 rm -rf /usr/sbin/apache2
- 须藤 rm -rf /usr/lib/apache2
我做了
- sudo apt-get -y install apache2 - 说它是最新版本
- 所有 conf 文件都在 /etc/apache2 /etc/log/apache2/error_log 是空白的
- sudo service apache2 restart 没有输出 - 没有错误 - 没有消息
- http//localhost 或 127.0.0.1 说 web 服务器不可用
- ps斧头| grep -i apache 给出 7919 pts/0 S+ 0:00 grep …