How to install ODBC on cPanel
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.
--with-unixODBC=/usr
Now run easyapache without changing anything, and it will compile ODBC in to 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!
If you like this post and wish to receive more articles from us, please like our FB page: Grepitout
Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.
For more details on our services, please drop us an E-mail at info@grepitout.com
How to open kernel prompt in c-panel to write these commands?