Upgrade apache2 and php version

Discussion in 'Installation/Configuration' started by Poliman, Jan 13, 2017.

  1. Poliman

    Poliman Member

    Hi. I have the newest version of ISP 3.1.1.p1 under Ubuntu Server 14.04 (3.13.0-100-generic #147-Ubuntu). I have apache 2.4.7 and php 5.5.9-1ubuntu4.20. I need upgrade both. How can I do this without break ISP? Is it possible?
     
  2. Poliman

    Poliman Member

    I have updated php to newer version 5.6.29. I have done:
    sudo add-apt-repository ppa:eek:ndrej/php
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install php5.6
    sudo a2dismod php5
    sudo a2enmod php5.6
    sudo service apache2 restart
    sudo apt-get install php5.6-fpm
    sudo a2enmod proxy_fcgi setenvif
    sudo a2enconf php5.6-fpm
    sudo service apache2 restart
    sudo service apache2 reload
    sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-xcache php5.6-cgi
    sudo update-alternatives --set php /usr/bin/php5.6
    sudo service apache2 restart

    When I put "php -v" I have:
    PHP 5.6.29-1+deb.sury.org~trusty+1 (cli)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with XCache Optimizer v3.2.0, Copyright (c) 2005-2014, by mOo
    with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
    with XCache Coverager v3.2.0, Copyright (c) 2005-2014, by mOo

    But problem is - How to tell ISPconfig to use this new php version? Under System -> Server config -> Web (and FastCGI tab too) -> PHP Settings I see paths to old php version like on uploaded screen.
     

    Attached Files:

Share This Page