升级到最新的PHP,现在无法连接到localhost

时间:2014-03-30 05:34:56

标签: php apache

sudo apt-get install python-software-properties
sudo apt-get update;
sudo apt-get install php5

我运行这些命令并更新了我的php,但现在我无法连接到localhost。当我尝试重新启动apache2时,它说:

The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 214 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/httpd.conf: No such file or directory

Action 'configtest' failed.
The Apache error log may have more information.

1 个答案:

答案 0 :(得分:0)

创建httpd.conf文件并重新启动apache2,它将起作用

touch /etc/apache2/httpd.conf