HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   Multiple PHP versions (http://www.howtoforge.com/forums/showthread.php?t=57610)

Croydon 12th June 2012 17:57

Multiple PHP versions
 
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?

till 12th June 2012 18:15

Thats already implemented in svn version.

Croydon 12th June 2012 19:10

Oh dear... :( Thanks.

snowfly 13th June 2012 03:10

Quote:

Originally Posted by till (Post 280581)
Thats already implemented in svn version.

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

till 13th June 2012 08:02

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.

wkmpl 3rd July 2012 11:43

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?

till 3rd July 2012 11:51

Quote:

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.
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.

Quote:

Or is there any workaround e.g. using another compiled php version for suPHP or mod-PHP selection?
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.

wkmpl 3rd July 2012 12:14

Quote:

Originally Posted by till (Post 281483)
The paths to the php binaries are configurable under system > server config.

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:

till 3rd July 2012 12:29

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

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


All times are GMT +2. The time now is 06:10.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.