无法重新启动在Ubuntu 14.04服务器的Apache2 [英] Unable to restart apache2 server on ubuntu 14.04

查看:225
本文介绍了无法重新启动在Ubuntu 14.04服务器的Apache2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装PHP和Apache2的在我的Ubuntu 14.04。我通过以下命令安装PHP和的Apache2

I am trying to install PHP and apache2 in my ubuntu 14.04. I installed PHP and apache2 through the following commands

  $sudo apt-get install php5-cli
  $sudo apt-get install apache2-bin

现在我只想重新启动的Ubuntu系统上的Apache2服务器。但我收到失败的错误,而重新启动的Apache2。我下面提到

Now I just want to restart apache2 server on ubuntu system. But I am getting the "failed" error while restarting apache2. I mentioned the error below

AH00558:apache2的:无法可靠地确定了服务器的完全合格的域名,使用127.0.1.1

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1.

全局配置服务器名称指令燮preSS此消息

Set the 'ServerName' directive globally to suppress this message

谁能帮我解决这个问题?

Can anyone help me to solve this error?

我需要重新启动在Ubuntu 14.04的Apache2我的服务器。

I need to restart my apache2 server on ubuntu 14.04.

推荐答案

问题无关,与你所得到的通知
尝试

The problem has nothing to do with the notice you are getting Try

tail -f  /var/log/apache2/error.log

或者你系统检查Apache的错误日志类似的位置。这将清楚地告诉你错误所在。最常见的就是我得到的是,我在虚拟主机配置中指定的日志目录丢失

Or similar location on you system to check the Apache error log. This will clearly tell you where the error is. The most frequent one I get is that the log directory that I specified in the vhost configuration is missing

在通知书中,添加

ServerName localhost

您的配置,它会消失。
如果您的主机名不是localhost运行

to your configuration and it will be gone. In case your hostname is not localhost run

hostname

若要了解它是什么,然后更新适当的值ServerName指令

to learn what it is and then update ServerName directive with the proper value

在Ubuntu的Apache的的conf文件在

On ubuntu the Apache conf file is in

/etc/apache2/apache2.conf中

/etc/apache2/apache2.conf

这篇关于无法重新启动在Ubuntu 14.04服务器的Apache2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆