Error installing libapache2-mod-php5 Debian.

Discussion in 'Installation/Configuration' started by StevenD, Apr 16, 2016.

  1. StevenD

    StevenD Member

    Hi All,
    When trying to install libache2-mod-php using apt-get install libapache2-mod-php5, I get the following error:

    /usr/share/apache2/apache2-maintscript-helper: line 291: [: !=: unary operator expected
    apache2_switch_mpm prefork: No action required
    dpkg: error processing package libapache2-mod-php5 (--configure):
    subprocess installed post-installation script returned error exit status 1

    Full process here:
    After this operation, 9,876 kB of additional disk space will be used.
    Selecting previously unselected package libapache2-mod-php5.
    (Reading database ... 170031 files and directories currently installed.)
    Preparing to unpack .../libapache2-mod-php5_5.6.19+dfsg-0+deb8u1_amd64.deb ...
    Unpacking libapache2-mod-php5 (5.6.19+dfsg-0+deb8u1) ...
    Setting up libapache2-mod-php5 (5.6.19+dfsg-0+deb8u1) ...
    php5_invoke: Enable module opcache for apache2 SAPI
    php5_invoke: Enable module sqlite3 for apache2 SAPI
    php5_invoke: Enable module xmlrpc for apache2 SAPI
    php5_invoke: Enable module pdo_sqlite for apache2 SAPI
    php5_invoke: Enable module xcache for apache2 SAPI
    php5_invoke: Enable module recode for apache2 SAPI
    php5_invoke: Enable module imagick for apache2 SAPI
    php5_invoke: Enable module json for apache2 SAPI
    php5_invoke: Enable module intl for apache2 SAPI
    php5_invoke: Enable module pspell for apache2 SAPI
    php5_invoke: Enable module imap for apache2 SAPI
    php5_invoke: Enable module memcached for apache2 SAPI
    php5_invoke: Enable module tidy for apache2 SAPI
    php5_invoke: Enable module pdo_mysql for apache2 SAPI
    php5_invoke: Enable module xsl for apache2 SAPI
    php5_invoke: Enable module pdo for apache2 SAPI
    php5_invoke: Enable module readline for apache2 SAPI
    php5_invoke: Enable module mysqli for apache2 SAPI
    php5_invoke: Enable module snmp for apache2 SAPI
    php5_invoke: Enable module mysql for apache2 SAPI
    php5_invoke: Enable module mcrypt for apache2 SAPI
    php5_invoke: Enable module curl for apache2 SAPI
    php5_invoke: Enable module gd for apache2 SAPI
    php5_invoke: Enable module memcache for apache2 SAPI
    /usr/share/apache2/apache2-maintscript-helper: line 291: [: !=: unary operator expected
    apache2_switch_mpm prefork: No action required
    dpkg: error processing package libapache2-mod-php5 (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    libapache2-mod-php5
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I have tried removing and apt-get -f install.

    Thanks

    Steve
     

Share This Page