Tag: apache

Linux下apache以root身份运行

最近在某个项目需求中需要在 Linux 下使 apache 以 root 身份运行(默认使用的是 apache 用户),直接修改 apache 配置文件 httpd.conf 中的运行身份为 User root 和 Group root 后启动 apache 结果会报下面的错误: Error: Apache has not been designed to serve pages while running as root. There are known race conditions that will allow any local user to read any file on th […]