Last active
August 27, 2016 05:29
-
-
Save boynoiz/94776687ebd7332695c78b3aa6456ff3 to your computer and use it in GitHub Desktop.
// My short memo
This file contains hidden or 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
1. add-apt-repository ppa:ubuntu-toolchain-r/test | |
2. apt-get update | |
3. apt-get upgrade | |
4. apt-get dist-upgrade | |
5. apt-get install php7.0-odbc | |
6. cd /usr/src | |
7. wget https://download.microsoft.com/download/2/E/5/2E58F097-805C-4AB8-9FC6-71288AB4409D/msodbcsql-13.0.0.0.tar.gz | |
8. tar zxvf msodbcsql-13.0.0.0.tar.gz && cd msodbcsql-13.0.0.0 | |
9. sudo ./build_dm.sh --libdir=/usr/lib/x86_64-linux-gnu --accept-warning | |
10. cd /tmp/unixODBC.10375.24876.18949/unixODBC-2.3.1; make install | |
11. cd /usr/src/msodbcsql-13.0.0.0 | |
12. ./install.sh install --accept-license | |
13. cd /usr/src | |
14. wget https://raw.githubusercontent.com/Azure/msphpsql/PHP-7.0-Linux/ODBC%20install%20scripts/installodbc_ubuntu.sh | |
15. chmod +x installodbc_ubuntu.sh | |
16. ./installodbc_ubuntu.sh | |
17. cd /usr/src | |
18. wget https://github.com/Azure/msphpsql/releases/download/v4.0.3-Linux/Ubuntu15.zip | |
19. unzip Ubuntu15.zip && cd Ubuntu15 | |
20. php-config --extension-dir | |
21. cp *.so /usr/lib/php/20151012/ | |
22. touch /etc/php/7.0/mods-available/pdo_sqlsrv.ini | |
23. touch /etc/php/7.0/mods-available/sqlsrv.ini | |
24. echo "extension=php_pdo_sqlsrv_7_nts.so" > /etc/php/7.0/mods-available/pdo_sqlsrv.ini | |
25. echo "extension=php_sqlsrv_7_nts.so" > /etc/php/7.0/mods-available/sqlsrv.ini | |
26. phpenmod odbc sqlsrv pdo_sqlsrv | |
27. php -i | grep -i pdo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment