- 论坛徽章:
- 0
|
各位好:
我是个新手,在学cgi+shell 编程,自己写的程序在root下可以正常运行,但是通过web无法运行,请教后知道是apache用户没有root权限原因。我试着用各种方法修改apache权限到root,但是提示错误:修改方法有修改 /etc/passwd、修改/etc/httpd/conf/httpd.conf中的用户和组,但是无法运行apache,提示如下:
[root@cgitest ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 227 of /etc/httpd/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
[FAILED]
从提示上看是要增加一个变量,并要重新编译apache,我刚刚学习,有些还不清楚,能否请各位大虾给个较详细的配置过程,谢谢。
我用的是 redhat as4.0 ,默认安装的apache
 |
|