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!

Hai trovato utile questa risposta? 0 Utenti hanno trovato utile questa risposta (0 Voti)