search

Home  >  Q&A  >  body text

How to install php extension on linux server?

Under the Linux server, the PHP version is 5.6. How to install the sqlsrv extension and the pdo_sqlsrv extension?

NineNine1194 days ago1712

reply all(4)I'll reply

  • Nine

    Nine2021-09-01 16:14:25

    Why do I read online that 5.6 does not support the pdo-sqlsrv extension?

    reply
    0
  • 想无

    想无2021-09-01 16:07:49

    I use the Xiaoniao Cloud Linux server, which is installed with the Pagoda panel. I also refer to others online:

    The first step is to install the source. The second step is to install the driver. The third step is to download the pdo-sqlsrv source code.

    wget http://pecl.php.net/get/pdo_sqlsrv-5.6.1.tgz

    tar -zxvf pdo_sqlsrv-5.6.1.tgzcd pdo_sqlsrv-5.6.1

    /www/server/php/73/bin/phpize./configure --with-php-config=/www/server/php/73/bin/php-configmake && make install

    echo "extension = pdo_sqlsrv.so" >> /www/server/php/73/etc/php.ini/etc/init.d/php-fpm-73 reload

    /www/server/php /73/bin/php -m|grep -i sqlsrv

    reply
    0
  • Nine

    Nine2021-08-23 09:29:30

    There are no these two extensions in php.ini

    reply
    0
  • 猪老湿

    猪老湿2021-08-23 09:04:13

    Edit php.ini, find the corresponding extension, delete the preceding semicolon, and then restart the service

    reply
    0
  • Cancelreply