免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2393 | 回复: 1
打印 上一主题 下一主题

[Web] root启动apache的问题.. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-09 14:14 |只看该作者 |倒序浏览
刚接触这个..但我查找了资料,弄了几个小时还是有问题..所以特来求助

刚编译安装了后..想用root来运行,把httpd.conf的group和user全部改成了root..然后加上了env CFLAGS="-Wall -DBIG_SECURITY_HOLE" ./configure
然后重新编译了,执行了make
但是运行apachectl -k start的时候还是提示的:
Syntax error on line 64 of /usr/local/server/apache/conf/httpd.conf:
Error:\tApache has not been designed to serve pages while\n\trunning as root.  There are known race conditions that\n\twill allow any local user to read any file on the system.\n\tIf you still desire to serve pages as root then\n\tadd -DBIG_SECURITY_HOLE to the CFLAGS env variable\n\tand then rebuild the server.\n\tIt is strongly suggested that you instead modify the User\n\tdirective in your httpd.conf file to list a non-root\n\tuser.\n

不知道是哪里的问题??有人告诉我吗?

安全问题先不讨论的前提下能告诉我吗??

论坛徽章:
0
2 [报告]
发表于 2007-03-10 09:25 |只看该作者
If you still desire to serve pages as root then   add -DBIG_SECURITY_HOLE to the CFLAGS env variable   and then rebuild the server.
添加 -DBIG_SECURITY_HOLE  到 CFLAGS 环境变量
然后重新编译
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP