Skip to content

Instantly share code, notes, and snippets.

@faizalmansor
Last active October 4, 2020 14:45
Show Gist options
  • Save faizalmansor/8a836037e61c11dad5c6f7e455c318f0 to your computer and use it in GitHub Desktop.
Save faizalmansor/8a836037e61c11dad5c6f7e455c318f0 to your computer and use it in GitHub Desktop.
How to Install PHP 7.0 MSSQL Driver on CentOS 7

How to Install PHP 7.0 MSSQL Driver on CentOS 7

Adapted from: http://fdta.com.br/2017/03/19/como-usar-o-freetds-e-o-unixodbc-em-um-centos-7-com-php-5-4-para-acessar-bancos-de-dados-sql-server-e-sybase-asa/

  1. Update CentOS with the following command
yum check-update 
yum update
  1. Install the necessary packages
yum install httpd httpd-tools php php-common php-cli php-odbc php-pdo unixODBC unixODBC-devel

You can sustitute httpd (apache) with nginx or any other web server of your choice.

  1. Install and Configure FreeTDS
yum install epel-release 
yum check-update 
yum install freetds freetds-devel
@faizalmansor
Copy link
Author

faizalmansor commented Aug 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment