Multiple PHP versions

Discussion in 'Developers' Forum' started by Croydon, Jun 12, 2012.

  1. Croydon

    Croydon HowtoForge Supporter

    Hello,

    I wonder if it would be possible (and would make sense, of course) to add the possibility of choosing different php versions when in fcgi mode (and maybe fpm).
    As php 5.4 is the most recent version right now (5.3 on debian stable), I have to add a manually compiled php 5.2.17 for some customers because of the major changes from 5.2 to 5.3.
    It would be much easier being able to choose the php version from the ispc admin instead of configuring this by hand for each affected client / web.

    Maybe there could be a conf/ini file where one can provide the different installed php versions and their paths (like /usr/bin/php52/php-cgi and /etc/php52/php.ini) and the "default" php version is always added automatically in the interface select box.

    I think this could make some server updates a lot easier if there is a new major php version. You could set all clients/webs to a manually compiled php version (maybe using a script and the remoting api) and then upgrade the server without breaking all the incompatible webs.

    What do you think?
     
  2. till

    till Super Moderator

    Thats already implemented in svn version.
     
  3. Croydon

    Croydon HowtoForge Supporter

    Oh dear... :( Thanks.
     
  4. snowfly

    snowfly New Member

    Any hints as to when this will be rolled out to stable?
    Thanks
     
  5. till

    till Super Moderator

    This feature is part of ISPConfig 3.0.5. There are not many pending tasks open in the roadmap for that version, so a first beta version should be released in a few weeks.
     
  6. wkmpl

    wkmpl New Member

    Hi Till,

    first thanks for this great software.

    Is there any chance to get the multiple PHP versions feature of the dev version into the current stable version e.g. by patching it with the commits from svn (2990-2994). That would be awesome because our customer need this feature.

    Or is there any workaround e.g. using another compiled php version for suPHP or mod-PHP selection?
     
  7. till

    till Super Moderator

    It is unlikely that this will work, the current SVN version ha smany changes and new libraries which are not present in the current stable release.

    Thats possible in the current stable release. You can use different php versions for mod_php, cgi, suphp and fastcgi. The paths to the php binaries are configurable under system > server config.
     
  8. wkmpl

    wkmpl New Member

    I didn't find any option to change the binaries for suPHP and mod-PHP under system > server config. Could you open my eyes :cool:
     
  9. till

    till Super Moderator

    mod_php ia a apche module, so ist no php binary.

    The suphp binary is configured in /etc/suphp.conf
     

Share This Page