ISPconfig 3.1 how can install multiple versions of PHP (5.6, 7.1 etc.) in Debian 9

Discussion in 'Installation/Configuration' started by Luis Urbina G., Oct 25, 2017.

  1. Luis Urbina G.

    Luis Urbina G. New Member

    Hello, I installed ISPconfig 3.1 with The Perfect Server - Debian 9 (Stretch) with Apache, BIND, Dovecot, PureFTPD and ISPConfig 3.1 without any problems at my Debian 9.1 Server, but I needs install PHP 5.6 and 7.1.

    I locked here and found this tutorial How to install PHP 7.x as PHP-FPM & FastCGI for ISPConfig 3.1 with apt on Debian 8 and 9 and everything looks like ok, and I only install PHP 5.6 and 7.1, because the Perfect server came with PHP 7.0, when I check ISPConfig (srv.example.com:8080), Apache show me error 500.

    How can I resolve this?, Can give me any Idea?

    Thanks
     
  2. Luis Urbina G.

    Luis Urbina G. New Member

    Test my System with the ISPConfig test script for common issues
    Everything looks ok but I reinstall everything again and I waiting for a solution to install PHP 5.6 and 7.1, how I said above. thanks
     

    Attached Files:

  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Me too. I need to install PHP 5.6 on Debian Strech in addition to the PHP 7 that already is installed. I found https://launchpad.net/~ondrej/+archive/ubuntu/php which offers .deb packages of several PHP versions for Debian and Ubuntu new releases.

    There is also this: https://www.howtoforge.com/tutorial...fig-3-from-debian-packages-on-debian-8-and-9/ which tries to show step by step what to do but the comment indicate problems in some steps. The last comment by Jesse Norell seems to indicate success. I inserted line breaks to make Jesse's comment more readable, but have not yet tried it.

    I do not yet have Debian 9 in production, but I have very little confidence on old websites working on PHP 7, so to me it is important to add PHP 5.6 as an alternative on a website by website basis.
     
  4. Luis Urbina G.

    Luis Urbina G. New Member

    Hi Taleman!
    Yesterday I found this script loocking at Saint Google https://github.com/servisys/ispconfig_setup - this wonderfull script promise install both PHP versions 5.6 and 7.0 BUT (why always exist a BUT????), when the installation finished and tried to logged in didn't let me login. In fact it installed both PHP versions, You can check with ls /etc/php/ command.
    if it weren't for this problem it would be perfect.

    If you found helpful this info and you can discover the mystery of what happen with it and shared here I will happy.
    I needs PHP 5.6 in production because Moodle 3.3 don't works in PHP 7.x
    Meanwhile, I still doing test at VMware image.
    Let me know if you have any progress with it.
    Best regards
     
  5. Luis Urbina G.

    Luis Urbina G. New Member

    Hi Taleman!
    Good News, Finally It works!
    What I do!?:
    1) when the installer script ask for expert mode I answer Yes! for two reasons: 1) change the default port 8080 for another one for security reasons like 9000 etc.2) I likes review all parameters of ISPconfig.
    2) For all passwords I used numbers, letters and +-,.-_ symbols any other.
    and I have installed both versions of PHP

    root@srv1:~# ls /etc/php
    5.6 7.0

    :)

    I will doing some test before I feel completely happy!
    We keep in contact!
     
  6. calbasi

    calbasi Member

Share This Page