Welcome to Centmin Mod Community
Register Now

What about dual PHP versions ?

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

  1. eva2000

    eva2000 Administrator Staff Member

    28,348
    6,438
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,533
    Local Time:
    4:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    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:
    3:37 PM
    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

    28,348
    6,438
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,533
    Local Time:
    4:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    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

    465
    136
    43
    May 25, 2014
    Ratings:
    +179
    Local Time:
    1:37 AM
    I have no need for this personally. Running 5.5.x on all servers.
     
    • Like Like x 1
  5. Matt

    Matt Moderator Staff Member

    663
    307
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +416
    Local Time:
    7:37 AM
    1.7.1
    MariaDB 10
    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:
    8:37 AM
    Sounds really cool :)

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

    pamamolf Well-Known Member

    2,469
    223
    63
    May 31, 2014
    Ratings:
    +382
    Local Time:
    9:37 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Very good :)
     
  8. Lundz

    Lundz Member

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

    eva2000 Administrator Staff Member

    28,348
    6,438
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,533
    Local Time:
    4:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah probably after 123.09betas go stable for next release(s)
     
  10. Jimmy

    Jimmy Active Member

    999
    219
    43
    Oct 24, 2015
    East Coast USA
    Ratings:
    +537
    Local Time:
    2:37 AM
    1.13.x
    MariaDB 10.1.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

    2,469
    223
    63
    May 31, 2014
    Ratings:
    +382
    Local Time:
    9:37 AM
    Nginx-1.13.x
    MariaDB 10.1.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

    240
    16
    18
    Jan 4, 2016
    Ratings:
    +31
    Local Time:
    3:37 AM
    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

    28,348
    6,438
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,533
    Local Time:
    4:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    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

    240
    16
    18
    Jan 4, 2016
    Ratings:
    +31
    Local Time:
    3:37 AM
    10
    Sorry, meant 5.6.
     
  15. eva2000

    eva2000 Administrator Staff Member

    28,348
    6,438
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,533
    Local Time:
    4:37 PM
    Nginx 1.13.x
    MariaDB 5.5
  16. elargento

    elargento Member

    240
    16
    18
    Jan 4, 2016
    Ratings:
    +31
    Local Time:
    3:37 AM
    10
    Great! Looking forward to see it implemented soon :)
     
  17. joshuah

    joshuah Member

    115
    14
    18
    Apr 3, 2017
    Ratings:
    +16
    Local Time:
    4:37 PM
    Can't wait to see this implemented.