Last active
April 27, 2017 17:50
-
-
Save mhulu/61ce206cdb5a26a181f22d1c45bc8392 to your computer and use it in GitHub Desktop.
Laravel 5 using ms sqlsrv (PHP7.0 fpm, Ubuntu 16.04)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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