Claudio Borges

Technical blog about Linux, BSD, Mac OS X, Games and etc.

SuPHP package for CentOS 7

with 3 comments

Hi Folks, I finished the SuPHP 0.7.2 package for CentOS 7. SuPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter. In other words, it’s useful if you want to use different PHP versions in the same environment.

You can download it over here. As soon as possible I’ll do a post describing the pros and cons about it.

Like I said in my previous post, I’m using all these packages in my production environment, which means, they have been 100% tested.

Feel free to ask questions or make suggestions. That is all for now.

Written by but3k4

August 14th, 2015 at 3:05 pm

3 Responses to 'SuPHP package for CentOS 7'

Subscribe to comments with RSS or TrackBack to 'SuPHP package for CentOS 7'.

  1. Thanks for providing this info as well as the package via your repo. Was this compiled with setid-mode to force or paranoid?

    It seems I cannot use the “suPHPUserGroup ” directives in my vhost configs.

    Dave

    24 Sep 15 at

  2. Hi David, thank you for using my package. So, it was compiled with “-setid-mode=owner.” I mean, you don’t need to use “suPHPUserGroup” within your virtual host. For example, in my virtual hosts, I just use the following options:

    SuexecUserGroup claudio claudio
    <IfModule mod_suphp.c>
        suPHP_ConfigPath /srv/claudio
    </IfModule>
    

    And the files in the /srv/claudio must be owned by claudio, and, all processes will run with this user. I use this configuration because, in my servers, the customers can access their own environments via ssh or ftp.

    Please, let me know if this configuration works for you.

    but3k4

    25 Sep 15 at

  3. Thank you very much for this. Ever since upgrading to CentOS 7 and Apache 2.4. suPHP has been a nightmare but thanks to you it’s all working again. Fantastic work.

    Jaysen Johnson

    22 Dec 15 at

Leave a Reply