Skip to content

Instantly share code, notes, and snippets.

@mhulu
Last active April 27, 2017 17:50
Show Gist options
  • Save mhulu/61ce206cdb5a26a181f22d1c45bc8392 to your computer and use it in GitHub Desktop.
Save mhulu/61ce206cdb5a26a181f22d1c45bc8392 to your computer and use it in GitHub Desktop.
Laravel 5 using ms sqlsrv (PHP7.0 fpm, Ubuntu 16.04)
Install some packages according to https://www.microsoft.com/en-us/sql-server/developer-get-started/php-ubuntu (MS SqlServer optional)
You will find 'Could not find driver' when using artisan command, need:
apt-get install php7.0-sybase
The most important step:
vi /etc/freetds/freetds.conf
in [Global] section:
# TDS protocol version
tds version = 7.0
client charset = UTF-8
now service php7.0-fpm restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment