Enable PDO + MSSQL on Linux

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Locked
Ree
Forum Regular
Posts: 592
Joined: Fri Jun 10, 2005 1:43 am
Location: LT

Enable PDO + MSSQL on Linux

Post 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.
Ree
Forum Regular
Posts: 592
Joined: Fri Jun 10, 2005 1:43 am
Location: LT

Post by Ree »

Nobody uses PDO? :roll:
User avatar
tcsoft
Forum Newbie
Posts: 12
Joined: Mon Jul 24, 2006 10:46 am
Location: Austria
Contact:

Post 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
bishopolis
Forum Newbie
Posts: 1
Joined: Tue May 29, 2007 6:57 pm

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

This thread is nearly a year old. Let them sleep peacefully, please.
Locked