Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save temsool/2b797ac42eca2532144ae91cbf142f43 to your computer and use it in GitHub Desktop.
Save temsool/2b797ac42eca2532144ae91cbf142f43 to your computer and use it in GitHub Desktop.

Install sqlsrv on WHM cPanel Server.md

From a command line

Source: https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-2017

$ curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssql-release.repo
$ sudo yum update
$ sudo ACCEPT_EULA=Y yum install -y msodbcsql mssql-tools unixODBC-devel 

In WHM:

Software -> Module Installers
Search "sqlsrv"
Install sqlsrv
Install pdo_sqlsrv
Repeat for all versions of PHP installed on the server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment