Want more timely Centmin Mod News Updates?
Become a Member

What about dual PHP versions ?

Discussion in 'Feature Requests & Suggestions' started by eva2000, May 28, 2014.

  1. eva2000

    eva2000 Administrator Staff Member

    50,489
    11,667
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,095
    Local Time:
    7:50 AM
    Nginx 1.25.x
    MariaDB 10.x
    Bringing the discussion over from G+ Community. As per the to do list, what about dual PHP versions ?


    Last time I was thinking about the fact that some PHP scripts don't support newer PHP 5.4 or 5.5 versions and that usually has locked folks into running PHP 5.3 server wide. But some control panels out there allow running more than one PHP version. PHP-FPM itself is capable of such, so Centmin Mod should be able to do the same.

    So I am entertaining for future beta release with the ability to run 2 PHP versions simultaneously - by default PHP 5.4.x and then a 2nd PHP version 5.3 or 5.5 and allow Centmin Mod users choose which version of PHP to run on a per domain/site basis. This would allow more flexibility overall.

    Most likely the same beta release as the one for the new Nginx vhost/chroot setup routine http://community.centminmod.com/threads/jailed-chrooted-sftp-ssh-user-nginx-vhost-menu.8/

    How many folks here would need or use dual PHP version capabilities ?
     
  2. Zykov

    Zykov Member

    31
    7
    8
    May 28, 2014
    Ratings:
    +7
    Local Time:
    6:50 AM
    Nginx 1.7.1
    MariaDB 10
    I need it! And maybe even php 5.2 :( I want to move some client sites on my new VDS and I'm not sure how their old scripts (like Easy-CMS for example) will perform.
    Also I've been told that "if your script runs on php 5.3 then it will run on 5.5 with minimal or no modding at all". So, maybe we need to go dual like 5.2 + 5.5 if it's possible?
     
  3. eva2000

    eva2000 Administrator Staff Member

    50,489
    11,667
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,095
    Local Time:
    7:50 AM
    Nginx 1.25.x
    MariaDB 10.x
    eek PHP 5.2 is too old, but the dual PHP config would most likely be user definable so you can select which PHP versions are used for both PHP instances.
     
  4. BamaStangGuy

    BamaStangGuy Active Member

    668
    192
    43
    May 25, 2014
    Ratings:
    +272
    Local Time:
    4:50 PM
    I have no need for this personally. Running 5.5.x on all servers.
     
  5. Matt

    Matt Well-Known Member

    903
    408
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +655
    Local Time:
    10:50 PM
    1.5.15
    MariaDB 10.2
    I've only been asked about this once previously, and that was because of an older vbulletin version, and the latest XenForo on the same server.

    I've been on PHP5.5 since it was originally added into Cpanel, and then continued when I went pure Centminmod.
     
  6. Lundz

    Lundz Member

    42
    6
    8
    May 28, 2014
    Ratings:
    +7
    Local Time:
    11:50 PM
    Sounds really cool :)

    I would love to see this added, sense i would use it :)
     
  7. pamamolf

    pamamolf Well-Known Member

    4,023
    421
    83
    May 31, 2014
    Ratings:
    +817
    Local Time:
    12:50 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Very good :)
     
  8. Lundz

    Lundz Member

    42
    6
    8
    May 28, 2014
    Ratings:
    +7
    Local Time:
    11:50 PM
    Is this still a thing?
     
  9. eva2000

    eva2000 Administrator Staff Member

    50,489
    11,667
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,095
    Local Time:
    7:50 AM
    Nginx 1.25.x
    MariaDB 10.x
    yeah probably after 123.09betas go stable for next release(s)
     
  10. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    5:50 PM
    1.17.x
    MariaDB 10.3.x
    I don't personally need this. Nothing I run needs to be running on an older / different version of PHP.
     
  11. pamamolf

    pamamolf Well-Known Member

    4,023
    421
    83
    May 31, 2014
    Ratings:
    +817
    Local Time:
    12:50 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    That's great as we will be able to test stuff using two versions for example php 5.x and 7.x :)
     
  12. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    6:50 PM
    10
    That would be really great. There are many plugins which aren't compatible with PHP 7 and would be really useful for me to run PHP 7 in some sites and php 5.3 in others.
     
  13. eva2000

    eva2000 Administrator Staff Member

    50,489
    11,667
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,095
    Local Time:
    7:50 AM
    Nginx 1.25.x
    MariaDB 10.x
    Well in theory i usually use separate servers for different php versions as it stands to reason that if you have web app/script that only supports EOL PHP 5.5/5.6 then it's code isn't as secure as PHP <5.5 at least doesn't get any more security updates. So you wouldn't want a site/web app/script using PHP <5.5 on the same server as a site/script using PHP 7.
     
    Last edited: Apr 21, 2017
  14. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    6:50 PM
    10
    Sorry, meant 5.6.
     
  15. eva2000

    eva2000 Administrator Staff Member

    50,489
    11,667
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,095
    Local Time:
    7:50 AM
    Nginx 1.25.x
    MariaDB 10.x
  16. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    6:50 PM
    10
    Great! Looking forward to see it implemented soon :)
     
  17. joshuah

    joshuah Member

    121
    14
    18
    Apr 3, 2017
    Ratings:
    +17
    Local Time:
    8:50 AM
    Can't wait to see this implemented.