Skip to content

Instantly share code, notes, and snippets.

@rothkj1022
Last active September 6, 2021 16:09
Show Gist options
  • Save rothkj1022/aede3deab4b2f7ec597645715e24ebea to your computer and use it in GitHub Desktop.
Save rothkj1022/aede3deab4b2f7ec597645715e24ebea 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