run PHP with user's permissions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Florian Effenberger

    run PHP with user's permissions

    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

  • C.

    #2
    Re: run PHP with user's permissions

    On 27 Jun, 16:58, Florian Effenberger <flo...@arcor.d ewrote:
    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.
    It'd be real hard to find a way to work around that problem.
    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.
    >


    C.

    Comment

    • Andrew Hutchings

      #3
      Re: run PHP with user's permissions

      Florian Effenberger wrote:
      Hi there,
      >
      I want to run PHP on my Apache 2.2 machine with the permission of the
      VSite or user invoking the script.
      >
      Is there any other way of achieving this, maybe more elegant?
      You can try suPHP: http://www.suphp.org/Home.html

      --
      Andrew Hutchings - LinuxJedi - http://www.linuxjedi.co.uk/
      Windows is the path to the darkside...Wind ows leads to Blue Screen. Blue
      Screen leads to downtime. Downtime leads to suffering...I sense much
      Windows in you...

      Comment

      • Florian Effenberger

        #4
        Re: run PHP with user's permissions

        Hi there,

        thanks for your help! I once read about suPHP but never tried it out.
        Tested it yesterday, and it seems to be a good solution for my
        problem! I just have to check whether it's secure enough or not. :-)

        Florian

        Comment

        Working...