Page 1 of 1

Enable PDO + MSSQL on Linux

Posted: Wed Jul 19, 2006 1:53 am
by Ree
How do I enable PDO with MS SQL support on Linux machine? I have PHP configured with:

--with-zlib --enable-pdo=shared --with-pdo-sqlite=shared --with-sqlite=shared --with-mssql=shared --with-pdo-mssql=shared

I have FreeTDS already installed. What extensions should I include in php.ini? On windows I had to include a couple of dlls and that was it.

Posted: Wed Jul 19, 2006 9:10 am
by Ree
Nobody uses PDO? :roll:

Posted: Tue Jul 25, 2006 5:54 am
by tcsoft
at compiling time you told php to use shared modules so that you don't have to recompile whole php when you want to upgrade pdo.

if you use php 5.1 and up pdo is delivered with the distribution. in any other case you need to grab the pdo-source from pear.php.net and compile it yourself.

add the following to your php.ini

extension=pdo.so
extension=pdo_mssql.so

Posted: Tue May 29, 2007 7:11 pm
by bishopolis
Ree wrote:I have PHP configured with:
--with-zlib --enable-pdo=shared --with-pdo-sqlite=shared --with-sqlite=shared --with-mssql=shared --with-pdo-mssql=shared
tcsoft wrote:if you use php 5.1 and up pdo is delivered with the distribution.
My PHP source (5.1.6 and 5.2.2) both do not have a --with-pdo-mssql configure item at all. have I got the wrong tar.gz ?
tcsoft wrote: in any other case you need to grab the pdo-source from pear.php.net and compile it yourself.
Here too, can you be more specific? I wasn't able to immediately find some PDO source from that initial URL.
Ree wrote:Nobody uses PDO? :roll:
Sorry to take things off-topic, but I really need to understand the purpose of following up one's own post with a useless statement like this one -- especially with the eye-roll. I constantly see users following up their own posts with something the equivalent of "Well, what's taking so long for my free support?!?" and I usually react accordingly. Is there another purpose to that kind of post? I'd like to learn from it and make sure I'm not reacting inappropriately.

Posted: Tue May 29, 2007 10:47 pm
by feyd
This thread is nearly a year old. Let them sleep peacefully, please.