Debian 9, NGINX, PHP 7.1

Discussion in 'Installation/Configuration' started by Loveless, Feb 24, 2018.

  1. Loveless

    Loveless Member

    Install of ISPcfg fails because it expects PHP 7.0
    I've installed php 7.1 using the surly repo, by recommendation of several debian admins.
    So anyway, is there an easy workaround for these?
    PHP Warning:  symlink(): No such file or directory in /tmp/ on line 2131
    Configuring Jailkit
    Configuring Database
    Updating ISPConfig
    ISPConfig Port [65080]:
    Create new ISPConfig SSL certificate (yes,no) [no]:
    Reconfigure Crontab? (yes,no) [yes]:
    Updating Crontab
    Restarting services ...
    Failed to reload php7.0-fpm.service: Unit php7.0-fpm.service not found.
    Update finished.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can use PHP 7.1 as additional PHP version in ISPConfig, but you can't replace the default PHP of the operating system with it. Ensure that you keep the PHP that ships with the OS and install PHP 7.1 just aside from it from surly. Then reinstall ISPConfig or at least do an ISPConfig update with reconfigure services to fix your broken setup.
  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    This is not advisable but you have to modify the installation file for debian 9 if you want to run ISPConfig with php7.1.

    After extraction and before running install.php change php7.0 to php7.1 in the said file using something like this:
    cd /tmp
    tar xvfz ISPConfig-3.1.11.tar.gz
    cd ispconfig3*/install/
    sed -i 's/php7\.0/php7\.1/' dist/conf/debian90.conf.php
    sed -i 's/\/7\.0/\/7\.1/' dist/conf/debian90.conf.php
    php -q install.php

Share This Page