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:
and add the following to it.
Now run easyapache without changing anything, and it will compile ODBC into PHP.
You can verify the ODBC module is installed on PHP by the following command.
php -m | grep odbc