Re: Start/Stop Service from program php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jul 26, 2008 at 11:48 PM, Micah Gersten <micah@xxxxxxxxxxx> wrote:
> Generally, apache runs as www-data.  What was the output of the command?

    Actually, Apache generally runs (in order) as nobody, apache,
httpd, or daemon.  Some distros (such as Ubuntu) or control panel
installations (such as Plesk) change this default.  For example,
Ubuntu Feisty uses 'www-data', and Plesk uses a group of 'psacln'.

    From PHP, if system access (i.e. - exec(), passthru(), etc.) is
allowed, the easiest way to find out which user you are with Apache on
*NIX is to run this file in a browser:

<?php
echo `whoami`;
?>

-- 
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux