Re: Start/Stop Service from program php

From: Date: Sun, 27 Jul 2008 15:02:33 +0000
Subject: Re: Start/Stop Service from program php
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-277371@lists.php.net to get a copy of this message
On Sat, Jul 26, 2008 at 11:48 PM, Micah Gersten <micah@onshore.com> 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.

« previous php.general (#277371) next »