You can install ODBC using the following steps. First, you need to make sure you have the unixODBC and unixODBC-devel RPM installed for your system. If it is not installed you can simply install it by using the following command.

yum -y install unixODBC unixODBC-devel

Once it is installed, do the following steps:

vim /var/cpanel/easy/apache/rawopts/all_php5

and add the following to it.


Now run easyapache without changing anything, and it will compile ODBC into PHP.

/scripts/easyapache --build

You can verify the ODBC module is installed on PHP by the following command.

php -m | grep odbc

That’s it!

Was this answer helpful? 0 Users Found This Useful (0 Votes)