php with mssql

davidb

Verified User
Joined
Oct 9, 2004
Messages
59
Ok, I have followed several different threads on here to try and get freetds installed and have php support mssql with zero success.

I have tried both installing via yum and rebuilding php (with a custom configure.php5 in /usr/local/directadmin/custombuild/custom/ap2) and installing freetds manually and rebuilding php.

Following no set of directions anywhere in these forums am I able to get phpinfo to reflect mssql support.

Has anyone gotten this to work on centos 5 recently or can you offer any help? I need this and am pulling my hair out.

What I see during the ./build php n
checking for MSSQL support via FreeTDS... no

contents of /usr/local/directadmin/custombuild/custom/ap2/configure.php5
#!/bin/sh
./configure \
--with-apxs2 \
--with-curl=/usr/local/lib \
--with-gd \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mssql=/usr/local/freetds \
--with-mysql \
--with-mysqli \
--with-pdo-mysql \
--with-pcre-regex=/usr/local \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xsl \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-exif \
--enable-ftp \
--enable-gd-native-ttf \
--enable-magic-quotes \
--enable-safe-mode \
--enable-soap \
--enable-sockets \
--enable-mbstring \
--enable-zip \
--enable-wddx
 
Last edited:
Hello,

Make sure, you're updating the right config:

Code:
/usr/local/directadmin/custombuild/build used_configs

or

Code:
/usr/local/directadmin/custombuild/build used_configs | grep configure.php | cut -d\: -f2

the command will list you actual files, you're using with custombuild.
 
I found it just a little before your response.. turns out that a custom suphp was in the wrong place..

Thanks!
 
Back
Top