PDA

View Full Version : php-odbc install



ajo
10-07-2010, 05:49 AM
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

scsi
10-07-2010, 08:02 AM
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

ajo
10-07-2010, 08:29 AM
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.