How to Enable PHP 7 in ISPConfig ubuntu 16.04

Discussion in 'Installation/Configuration' started by jaypabs, Nov 21, 2016.

  1. jaypabs

    jaypabs Member

    I just upgraded Ubuntu 14.04 to Ubuntu 16.04. I'm using Nginx as my web server. Before, I was using PHP 5 and after the upgrade, the default PHP version is 7. Now, when I update the settings in ISPConfig 3 under Sites >> Website domain >> Options, the settings is still save under /etc/php5/fpm/pool.d/ and not to /etc/php/7.0/fpm/pool.d/.
    I search a lot of tutorial but most of them are related to debian. I know there is another option in Additional PHP Versions but I don't know how to set it.
    Can anyone please help me on this?
    Thanks in advance.
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Are all your PHP versions working? The name of the directory doesn't really matter, as long as it exists and the config files are getting written there. Maybe ispconfig should have its own directory under /usr/local/ispconfig/... just to make things consistent/less confusing.
     
  3. jaypabs

    jaypabs Member

    I don't know if the older version is still working. What I know is PHP7 is the default version now.
    So how can I get PHP7 be the default version in ISPConfig?

     
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    System > Server Config > {your server} > Web (tab) > PHP Settings

    You'll need to resync websites (Tools menu) after you change things there.
     
  5. jaypabs

    jaypabs Member

    Thank you very much. I didn't see that there's a settings for that.
     

Share This Page