Cannot install pecl extension to additional PHP [SOLVED]

Discussion in 'ISPConfig 3 Priority Support' started by SupuS, Aug 24, 2017.

  1. SupuS

    SupuS Member HowtoForge Supporter


    I would like to install Microsoft ODBC Driver for additional PHP 7.1 version using pecl as described on:

    I tried these commands:
    cd /opt/php-7.1.6/etc/
    pecl -C ./pear.conf -v install sqlsrv
    pecl/sqlsrv requires PHP (version >= 7.0.0), installed version is 5.6.30-0+deb8u1
    No valid packages found
    install failed
    For some reason pecl use system PHP version instead of additional PHP version. How to force pecl to use additional php version 7.1.6?
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    You have not used the PHP7 version. You typed pecl instead of /opt/php-7.1.6/bin/pecl (global pecl instead of additionally installed).
    SupuS likes this.
  3. SupuS

    SupuS Member HowtoForge Supporter

    Thank you Croydon. It works.

Share This Page