Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP run as the user?

Discussion in 'General Discussion' started by shaun, Feb 16, 2002.

  1. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    San Clemente, Ca
    Anybody set php up to run as the UID/GID? Some clients try to use php write commands and they get permissions denied. Usually a quick fix for this is to have them write into a seperate dir and have that dir owned by nobody. This of course isnt very safe.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Site5-Matt

    Site5-Matt Well-Known Member
    PartnerNOC

    Joined:
    Aug 10, 2001
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    306
    Shaun,

    As thigs currently exist, there is no way to do this without having your server run PHP scripts as CGI, in which case they could be run through suEXEC. The obvious problem there is that if PHP is run as a CGI instead of an Apache module, there is going to be increased overhead for each PHP script call, and performance will not be as good as that of mod_php.

    Matt
     
  3. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    San Clemente, Ca
    Ya i read about somthing like that. You thing sombody would have developed a better way of doing this allready. Oh well... Thanks matt.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice