Web Servers on Unix and Linux - run PHP with user's permissions

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > June 2007 > run PHP with user's permissions





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author run PHP with user's permissions
Florian Effenberger

2007-06-26, 1:16 pm

Hi there,

I want to run php on my Apache 2.2 machine with the permission of the
VSite or user invoking the script.

Right now, I do it via the kernel binfmt support and suEXEC, so my
scripts run as CGI. This leads to some problems, like memory and CPU
consumption for the php binary instead of a module, and problems when
several users should edit a php file - suEXEC only allows write
permission for the owner.

Is there any other way of achieving this, maybe more elegant?

Thanks!
Florian

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com