php-odbc install

ajo

Verified User
Joined
Sep 18, 2009
Messages
25
Location
India
Hi,

I need to install php-odbc in my Directadmin server. I have tried using custombuild.

cd /usr/local/directadmin/custombuild/configure/ap2

I edited the configure.php5 and added '--with-ODBC \' to it.

But odbc is still not added to php.

Can any one please help me to install php-odbc
 
Make a folder /usr/local/directadmin/custombuild/custom

Then put the custom file in there.

mkdir -p /usr/local/directadmin/custombuild/custom/configure/ap2
cp -rfp /usr/local/directadmin/custombuild/configure/ap2/configure.php5 /usr/local/directadmin/custombuild/custom/configure/ap2/configure.php5

If you use suphp then the subfolder ap2 is wrong and should be suphp/configure.php5
 
Last edited:
I have installed unixODBC from source and added this line to configure.php5

--with-unixODBC-dir=/usr/local/unixODBC/lib \

The compilation completed with out errors. But I am not able to find unixODBC in the php info page.
 
I have installed unixODBC from source and added this line to configure.php5

--with-unixODBC-dir=/usr/local/unixODBC/lib \

The compilation completed with out errors. But I am not able to find unixODBC in the php info page.

On CentOS release 5.8:

yum install unixODBC

Add in /usr/local/directadmin/custombuild/custom/ap2/configure.php5

--with-unixODBC=/usr \

Then rebuild php:

./build php n

Check result with: php -m|grep odbc

Output should be: odbc
 
Back
Top