代碼: 選擇全部
sudo apt install php-pear
sudo apt-get install php7.1-dev
sudo apt-get install unixodbc-dev
sudo apt-get install php7.1-sybase
sudo pecl install sqlsrv
sudo pecl install pdo_sqlsrv
代碼: 選擇全部
ln -s /etc/php/7.1/mods-available/sqlsrv.ini 20-sqlsrv.ini
ln -s /etc/php/7.1/mods-available/pdo_sqlsrv.ini 20-pdo_sqlsrv.ini
https://packages.microsoft.com/ubuntu/1 ... odbcsql17/
代碼: 選擇全部
wget https://packages.microsoft.com/ubuntu/16.04/prod/pool/main/m/msodbcsql17/msodbcsql17_17.4.2.1-1_amd64.deb
dpkg -i msodbcsql17_17.4.2.1-1_amd64.deb