php - what to choose

Discussion in 'General' started by atrias, Jan 27, 2009.

  1. atrias

    atrias New Member

    Maybe this is a little off-topic but i am sure that everyone is interested to know!

    In ISPconfig 3 for PHP we have these options
    fast-cgi
    cgi
    mod-php
    suphp

    For these options please give your opinions regarding ease of installation and usage , problems that might be caused with each method , security concerns , resource usage for each one and anything else you might find useful.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I haven't done any benchmarks, but I guess the fastest methods are fastCGI and mod_php, while fastCGI, CGI and suPHP are more secure because they allow you to run scripts as the web site's user and group instead of the Apache user.

    mod_php is the easiest to install.
     
  3. atrias

    atrias New Member

    thank you for your reply!

    So mod_php is the default (easiest) and beyond that, if you need to be more secure, you put some more effort and install fastCGI (keeping in mind that both are considered fast).
    So after that the other two seem to be less useful.

    In a general setup providing hosting service to the public i guess you would choose fastCGI correct?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Security-wise - yes. If you just want to host for a few people that you know, mod_php is ok, I guess.
     

Share This Page