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

    Hello,

    I would like to install Microsoft ODBC Driver for additional PHP 7.1 version using pecl as described on:
    https://docs.microsoft.com/en-us/sq...ling-the-microsoft-odbc-driver-for-sql-server
    https://stackoverflow.com/questions/34377338/linux-php-7-0-and-mssql-microsoft-sql

    I tried these commands:
    Code:
    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