为什么Apache 2.4作为本地用户而不是www-data运行?

时间:2016-07-28 18:05:50

标签: ubuntu-12.04 apache2.4

我从ppa:ondrej在Ubuntu 12.04上安装了Apache 2.4。 我有预期的:/ etc / apache2 / envvars 我有预期的:/etc/init.d/apache2 我甚至硬编码:/etc/apache2/apache2.conf 用户www-data 组www-data

我使用“demo”登录并输入:

sudo service apache2 start

然后:

ps aux | grep apache2

这就是我所看到的:

demo 31462 0.0 0.0 6504 620 pts / 1 S + 10:56 0:00 grep apache2

我想以www-data运行! 我错过了什么?

1 个答案:

答案 0 :(得分:0)

您的ps输出显示的是grep命令,而不是任何httpd进程。如果它是" apache2"的唯一进程,则必须启动失败。在里面。检查日志,并在调试时使用apachectl / apachectl -t。