Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    15

    Question suPHP / phpsuexec

    Hello!

    I am courious about installing either suPHP and/or phpsuexec. Though since we use WHM I am also wondering how to do this the "proper" way.

    I checked the addon packages etc for these but couldn't find them. Sometimes I know that things work best if you do them the "WHM compilant way" (tm) As of I wouldn't have a problem installing either of them on a system not managed by WHM it is more of a question how WHM will interact with this and how to avoid it to overwrite custom configuration etc.

    So, advice on how to do this properly would be appreciated.

    To clarify we have sections in httpd.conf stating:

    <VirtualHost x.x.x.x>
    ..... etc ....
    User username
    Group usergroup
    ..... etc ......
    </VirtualHost>

    and I would like php scripts to by default run as <username>

    Greets,
    Mikael, Xlate Systems AB
    Last edited by jonne; 06-02-2005 at 05:04 AM.

  2. #2
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    836
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    You can enable phpsuexec by recompiling apache using either buildapache or easyapache. That will enable it the cpanel way.
    Michael

  3. #3
    Member
    Join Date
    Jun 2004
    Posts
    15

    Default

    Thanks!

    Just a side question; will this achieve what we are trying to do? i.e. run all php scripts under certain domains as that user (not through CGI interface etc).

    Greets,
    Mikael, Xlate Systems AB

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    You can read about SuPhp and Phpsuexec. Just google.
    http://www.suphp.org/
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  5. #5
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    836
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jonne
    Thanks!

    Just a side question; will this achieve what we are trying to do? i.e. run all php scripts under certain domains as that user (not through CGI interface etc).

    Greets,
    Mikael, Xlate Systems AB
    yes it will run all php as the user.
    Michael

  6. #6
    Member
    Join Date
    Feb 2005
    Location
    Sidman, PA
    Posts
    53

    Default

    hi,

    Sorry to bump this thread but didn't think I should start my own, as this is not too old.

    Isn't phpsuexec now no longer developed? So if I would enable phpsuexec, well, would cpanel ever take it out of the options in updating apache, in the future? That's one thing I'm concerned about.

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    The best option, since you prefer administering your server via the WHM, is to enable phpsuexec by recompiling apache. You'll need make sure that Phpsuexec is checked every time you recompile Apache. In addition, make sure that Php scripts are chmod 755, otherwise they won't work.
    Last edited by AndyReed; 06-27-2005 at 04:50 PM.
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  8. #8
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I recall in a previous thread that cPanel said that they would continue to support phpsuexec themselves. Since the project disappeared some time ago and it's still functioning just fine in apache 1.3.33 I wouldn't lose too much sleep over it. Disabling phpsuexec is a simple and painless process if need be.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  9. #9
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    836
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by AndyReed
    The best option, since you prefer administering your server via the WHM, is to enable phpsuexec by recompiling apache. You'll need make sure that Phpsuexec is checked every time you recompile Apache. In addition, make sure that Php scripts are chmod 755, otherwise they won't work.
    It's been quite some time since php scripts needed to be chmodded 755 - just upload them and they work fine (on default 644 setting).
    Michael

Similar Threads & Tags
Similar threads

  1. setup PHPSuExec or suPHP
    By mojamoi in forum New User Questions
    Replies: 1
    Last Post: 03-15-2011, 12:14 AM
  2. phpsuexec,,,suphp issue
    By assassin85 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-18-2010, 03:25 PM
  3. suPHP = phpsuexec
    By hikaro in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-31-2008, 09:46 AM
  4. phpsuexec
    By kuwaitnt in forum New User Questions
    Replies: 2
    Last Post: 05-17-2006, 09:26 AM
  5. To phpsuexec or not to phpsuexec?
    By nothsa in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 01-07-2006, 11:29 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube