Ubuntu10.04上apache2: bad user name ${APACHE_RUN_USER}问题解决
来源:互联网 发布:数据库开发软件 编辑:程序博客网 时间:2024/06/04 17:51
原文地址:http://blog.csdn.net/kongxx/article/details/5708427
Ubuntu10.04上apache2: bad user name ${APACHE_RUN_USER}问题解决
1. 安转apache2
# sudo apt-get install apache2
2. 安装完毕后,使用命令“apache2 -k graceful”启动的时候报以下错误
apache2: bad user name ${APACHE_RUN_USER}
3. 检查/etc/apache2/apache2.conf文件,发现其中需要使用/etc/apache2/envvars文件中的以下几个环境变量
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2.pid
但是在检查这几个环境变量时发现配置的用户名合组都是存在的
4. 后来发现如果不用脚本而改用启动系统服务的方式,就可以避免上面问题
# sudo /etc/init.d/apache2
5. 将自己的html文件放置在/var/www/目录下,然后访问http://localhost/,一切ok!
0 0
- Ubuntu10.04上apache2: bad user name ${APACHE_RUN_USER}问题解决
- Ubuntu10.04上apache2: bad user name ${APACHE_RUN_USER}问题解决
- apache2: bad user name ${APACHE_RUN_USER} 解决方法
- ubuntu 中apache2 测试配置时,提示bad user name ${APACHE_RUN_USER}
- httpd: bad user name apache
- aix上启动/停止apache报错 httpd: bad user name nobody
- Apache2 支持 https (ubuntu10.04)
- ubuntu10.04 server install apache2
- 启动httpd提示:httpd: bad user name daemon
- Monorail开发框架 unknow user name or bad password
- 启动httpd提示:httpd: bad user name daemon
- Ubuntu10.04 网络问题解决记录
- Ubuntu10.04安装配置apache2+php5+mysql+phpmyadmin
- google earth ubuntu10.04中文乱码问题解决
- ubuntu10.04屏闪问题解决方法
- ubuntu10.04 无法编译 yaf 的问题解决
- 4.5. UBUNTU10.04上安装
- Ubuntu10.04 上 安装 samba
- 2013年迟来的总结
- MAC下启动python得idle
- 《黑马程序员》反射机制《一》
- 淘宝数据魔方技术架构解析
- 读懂让自己更智慧的10句话
- Ubuntu10.04上apache2: bad user name ${APACHE_RUN_USER}问题解决
- leetcode Count and Say 2.13 难度系数2
- Spring RMI源码解读
- qt 布局
- 《黑马程序员》反射机制(二)与内省
- leetcode JAVA Unique Paths 2.14 难度系数2
- Start cpp learnning ex1
- 为什么程序员的社会地位不高?
- 黑马程序员_java基础_多线程学习笔记