apache重启和语法检查过程中的几个小错误解决
2011-06-03 09:41
246 查看
重启apache时出现如下提示,虽然不影响apache的正常运行,但看着就别扭,还是解决掉吧:
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[Fri Jun 03 08:42:38 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
apache语法检查时出现如下提示:
# apache2 -t
apache2: bad user name ${APACHE_RUN_USER}
1、# vi /etc/apache2/apache2.conf
127 User www-data
128 Group www-data
2、apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
解决方法:
# vi /etc/apache2/httpd.conf
添加
ServerName localhost
3、[Fri Jun 03 08:42:38 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
解决方法:
# vi /etc/apache2/ports.conf
添加
NameVirtualHost *:443
最后重启apache即可。
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[Fri Jun 03 08:42:38 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
apache语法检查时出现如下提示:
# apache2 -t
apache2: bad user name ${APACHE_RUN_USER}
1、# vi /etc/apache2/apache2.conf
127 User www-data
128 Group www-data
2、apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
解决方法:
# vi /etc/apache2/httpd.conf
添加
ServerName localhost
3、[Fri Jun 03 08:42:38 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
解决方法:
# vi /etc/apache2/ports.conf
添加
NameVirtualHost *:443
最后重启apache即可。
相关文章推荐
- [笔记]--解决Ubuntu Apache重启的错误
- 手工编译安装php后,重启apache时,libphp5.so: cannot restore segment prot after reloc: Permission denied 错误的解决办法
- APMServ错误解决办法:1、Apache启动失败,请检查相关配置
- APMServ错误解决办法:1、Apache启动失败,请检查相关配置
- Ubuntu下Apache重启错误:Could not reliably determin解决
- SQL Server安装过程中出现“以前的某个安装程序已在安装计算机上创建挂起的文件操作,运行程序前必须重启计算机”错误的解决方法
- APK 反编译过程中的几个错误解决方法
- Ubuntu下Apache重启错误:Could not reliably determine解决
- hadoop2.4.1源码在64位系统编译过程中遇到的几个错误及解决方法
- kamailio服务器负载均衡配置过程中,将几个sip服务器同时指向同一个mysql,出现的错误解决
- 解决linux重启apache遇到:Could not reliably determine the server's ...的错误
- svn+apache部署过程中错误之解决办法
- 数据库安装错误的解决方式 【转】如何处理 SQL Server 安装过程中的 COM+ 检查失败问题 - ...
- oracle 安装过程中检查步骤出现的错误和解决方法
- Ubuntu下Apache重启错误:Could not reliably determine解决
- mysql启动、创建用户、建表过程中几个错误的解决方法
- VC6.0 --> VS2003 转换过程中的几个错误的解决
- ORACLE安装过程中检查步骤出现的错误和解决方法【转】
- oracle 安装过程常见的几个错误与解决方法
- oracle 安装过程常见的几个错误与解决方法