Apache - AH00558

1.1.1  现象

启动Apache,error.log中有如下错误信息:

AH00558: httpd.exe: Could not reliably determine the server‘s fully qualified domain name, using fe80::a4d8:fff8:b080:8986. Set the ‘ServerName‘ directive globally to suppress this message

1.1.2  原因

这是因为没有配置Apache服务器的域名。

1.1.3  解决

在httpd.conf中,查找ServerName,去掉前面的#,将www.example.com改为自己认为合适的值,后面跟着的端口号则需要跟实际端口号保持一致。

时间: 2024-10-14 05:18:55

Apache - AH00558的相关文章

apache AH00558错误: Could not reliably determine the server's fully qualified domain name

/usr/local/httpd/bin/apachectl start AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message apache 启动出现这种错误的解决方法:将 apache 的配

LAMP搭建 --mariadb安装和Apache安装

Mariadb安装 [[email protected] ~]# cd /usr/local/src/ [[email protected] src]# wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.6/bintar-linux-glibc_214-x86_64/mariadb-10.2.6-linux-glibc_214-x86_64.tar.gz 解压 [[email protected] src]# tar zxvf mar

编译安装httpd 2.4 ---格式待整理

httpd 2.4 版本需要依赖于apr 1.4版本httpd 依赖于 apr,apr-util    其安装又先后顺序之分:        1.apr        2.apr-util        3.httpd [[email protected] httpd]# rpm -q httpdhttpd-2.2.15-39.el6.centos.x86_64[[email protected] httpd]# service httpd stopStopping httpd:        

httpd 2.4.12 安装配置

编译apache 之前查看官网的安装说明 http://httpd.apache.org/docs/2.4/install.htmlapache 安装说明 下载组件wgethttp://mirrors.hust.edu.cn/apache/apr/apr-1.5.1.tar.gz wget http://mirrors.hust.edu.cn/apache/apr/apr-util-1.5.4.tar.gz wget ftp://ftp.csx.cam.ac.uk/pub/software/pr

Apache 重启时会有报 AH00558

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message 解决的问题是: sudo gedit /etc/apache2/apache2.conf 在文件后面加上: #Server Name ServerName 1

centos 源码安装apache

redhat6采用centos yum源. 第一步下载apache依赖的软件包并安装 安装 apr下载地址:http://apr.apache.org/download.cgi 解压包:tar -jxvf apr-1.5.0.tar.bz2 注意:这里的包的格式是tar.bz2格式,如果是.tar格式的用 tar -zxvf +包的名字 命令解压. 进入该包的文件夹内,依次执行以下命令: ./configure --prefix=/work/installed/apr (注意:configure

Linux下安装配置Apache服务器

Linux下安装配置Apache服务器 1. 安装Apache [[email protected] ~]# yum –y install httpd 2. 启动Apache [[email protected] ~]# systemctl start httpd 3. 查看进程 [[email protected] ~]# systemctl status httpd httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib

Apache 配置虚拟主机之1--基于名称(name-based)

基于 name-based 基于 IP 基于 port 结合 一.基于名称(name-based) 需要配置 hosts,httpd.conf 实验环境需求: 2个域名:www1.example.com www2.example.com IP:192.168.136.140 端口:80 文件目录./var/www目录下的结构如下. [[email protected] www]# tree . ├── cgi-bin ├── html ├── logs │   ├── www1 │   │  

Apache 学习笔记

系统环境:Ubuntu 1. 查看 apache2 版本 ? ~ apachectl -v Server version: Apache/2.4.7 (Ubuntu) Server built: Apr 3 2014 12:20:25 2.重启 apache #重启 apache sudo /etc/init.d/apache2 restart #开启 apache sudo /etc/init.d/apache2 start #关闭 apache sudo /etc/init.d/apache