CPanel - How to stop Apache from running as root user?

Posted by ambu on Server Fault See other posts from Server Fault or by ambu
Published on 2010-01-19T02:05:31Z Indexed on 2010/04/18 15:03 UTC
Read the original article Hit count: 361

Filed under:
|
|
|
<?php echo `whoami`; ?>

So this is returning 'root' and I don't know how to prevent it. I'm using WebHost Manager / CPanel which is supposed to create multiple users/vhosts and have Apache spawn it's process as that user/group. This isn't happening.

If I login to WHM and open the PHP and SuExec Configuration section, my settings are:

Default PHP Version (.php files)    5
PHP 5 Handler                       cgi
PHP 4 Handler                       none

Apache suEXEC                       on

What's wrong? How can I get Apache to run as the correct user rather than root?

© Server Fault or respective owner

Related posts about apache

Related posts about root