PHP UserID ?

php.internals

Andreas Prüßmann

19 years ago
Hello, i´am using an SLES 10.1 Server with an Apache 2.2. There´s PHP 5 installed. When i do an dir -o on the php executable, i can see that php belongs to root. My questtion is ... Do PHP run as user root ? Thanks Andreas

Andrew Hutchings

19 years ago
Andreas Prüßmann wrote:
> Hello, > > i´am using an SLES 10.1 Server with an Apache 2.2. > There´s PHP 5 installed. When i do an dir -o on the php executable, i can > see that php belongs to root. > My questtion is ... > Do PHP run as user root ?
If you are using Apache and PHP as a module then it will run as the same user as Apache. If you use suPHP then it runs as the same user as the script being executed. Regards Andrew
-- Andrew Hutchings - Linux Jedi - http://www.linuxjedi.co.uk/ A-Wing Internet Services - http://www.a-wing.co.uk/ Windows is the path to the darkside...Windows leads to Blue Screen. Blue Screen leads to downtime. Downtime leads to suffering...I sense much Windows in you.