[HOWTO] Run Multiple PHP Versions ISPConfig on Ubuntu v2

Discussion in 'Suggest HOWTO' started by Kronz, Jul 16, 2017.

  1. Kronz

    Kronz New Member

    Since the current howto is outdated and hard to follow, because many things have changed since the time of its writing, I would like to propose a new HOWTO.

    Here it goes.

    This tutorial explains how to run multiple php-fpm versions on the same ISPConfig server.

    1. Get PHP5.6 from this repo:

    Add the repo:
    Code:
    sudo add-apt-repository ppa:ondrej/php
    
    Install PHP5.6
    Code:
    sudo apt-get update && sudo apt-get install php5.6
    
    2. Set up ISPConfig to use the new version:
    Go to System >> Additional PHP Versions

    In the NAME tab choose the server and enter a name for the new PHP installation, in my case PHP5.6
    In the PHP-FPM settings tab, enter the following:
    -Path to PHP-FPM init script: This is located in /etc/init.d. Just search this directory for something like PHP5.6 and enter the path to it in this field.
    -Path to PHP.INI: Enter here the path to PHP-FPM's php.ini. It's typically something like /etc/php/5.6/fpm/php.ini, but you better use LOCATE to find its precise location.
    -Path to PHP-FPM pool directory: It's typically something like /etc/php/5.6/fpm/pool.d, but you better use LOCATE to find its precise location.

    This is what the final result should look like:
    [​IMG]
     
    till likes this.

Share This Page