forked from moodlehq/moodle-php-apache
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With sqlsrv latest 5.2-RC1 drivers and MSODBC 17 preview it seems that it's possible to make the extension to work under Debian 9. it requires to install MSODBC 13, uninstall it and then install MSODBC 17, but seems to be working ok. oci also requires some little changes and, finally, what I've been unable to fix/make work is solr. it seems that still is not ready, so I've disabled it for now. This will help fixing moodlehq#16.
- Loading branch information
Showing
6 changed files
with
49 additions
and
16 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# Install Microsoft dependencies for sqlsrv | ||
# Debian 9 requires ODBC driver 17, still not package available in repos, so followed this | ||
# https://github.com/Microsoft/msphpsql/wiki/Install-and-configuration#user-content-odbc-17-linux-installation | ||
echo "Downloading sqlsrv files" | ||
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | ||
curl https://packages.microsoft.com/config/debian/8/prod.list -o /etc/apt/sources.list.d/mssql-release.list | ||
apt-get update | ||
|
||
echo "Install msodbcsql" | ||
ACCEPT_EULA=Y apt-get install -y msodbcsql | ||
|
||
# now remove ODBC driver 13.1, then download and install 17 from Github | ||
apt-get purge -y msodbcsql | ||
|
||
curl https://raw.githubusercontent.com/Microsoft/msphpsql/dev/ODBC%2017%20binaries%20preview/Debian%209/msodbcsql_17.0.0.5-1_amd64.deb \ | ||
-o /tmp/msodbcsql_17.0.0.5-1_amd64.deb | ||
curl https://raw.githubusercontent.com/Microsoft/msphpsql/dev/ODBC%2017%20binaries%20preview/Debian%209/mssql-tools_17.0.0.5-1_amd64.deb \ | ||
-o /tmp/mssql-tools_17.0.0.5-1_amd64.deb | ||
|
||
ACCEPT_EULA=Y dpkg -i /tmp/msodbcsql_17.0.0.5-1_amd64.deb | ||
ACCEPT_EULA=Y dpkg -i /tmp/mssql-tools_17.0.0.5-1_amd64.deb | ||
|
||
rm /tmp/msodbcsql_17.0.0.5-1_amd64.deb | ||
rm /tmp/mssql-tools_17.0.0.5-1_amd64.deb | ||
|
||
ln -fsv /opt/mssql-tools/bin/* /usr/bin | ||
|
||
pecl install sqlsrv-5.2.0RC1 | ||
docker-php-ext-enable sqlsrv |
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