Ubuntu10.04上apache2: bad user name ${APACHE_RUN_USER}问题解决
2010-07-02 09:42
567 查看
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!
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!
相关文章推荐
- Ubuntu10.04上apache2: bad user name ${APACHE_RUN_USER}问题解决
- Ubuntu10.04上apache2: bad user name ${APACHE_RUN_USER}问题解决
- Ubuntu10.04上apache2: bad user name ${APACHE_RUN_USER}问题解决
- ubuntu 中apache2 测试配置时,提示bad user name ${APACHE_RUN_USER}
- apache2: bad user name ${APACHE_RUN_USER} 解决
- apache2: bad user name ${APACHE_RUN_USER} 解决方法
- Ubuntu–apache2: bad user name ${APACHE_RUN_USER}
- apache2: bad user name ${APACHE_RUN_USER}
- ubuntu安装apache2出现"Config variable ${APACHE_LOCK_DIR} is not defined"问题的解决方法
- (转)Ubuntu 10.04开机画面低分辨率问题解决方案
- Ubuntu 10.04 安装在 VMware Workstation 7 后,键盘无法输入的问题的解决方法
- ubuntu mysql问题 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YSE)解决
- 以不同用户身份运行程序,/savecred只需要输入一次密码(GetTokenByName取得EXPLORER.EXE的令牌,然后调用CreateProcessAsUser,而且使用LoadUserProfile解决另存文件的问题)good
- Ubuntu 10.04 安装在 VMware Workstation 7 后,键盘无法输入的问题的解决方法
- ubuntu 16.04下mysql5.7.17登录时出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' 问题解决!
- ubuntu10.04 解决root等待声音系统响应问题
- ubuntu 系统解决mysql连接问题(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:
- ubuntu安装apache2的步骤及发生的问题解决方法
- 六月 18th, 2010 Ubuntu 10.04: an error occurred while mounting /mnt/hgfs 问题的解决方法。
- ubuntu10.04 安装kde桌面删除后解决login和鼠标问题