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.
Enable PDO + MSSQL on Linux
Moderator: General Moderators
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
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
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
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:if you use php 5.1 and up pdo is delivered with the distribution.
Here too, can you be more specific? I wasn't able to immediately find some PDO source from that initial URL.tcsoft wrote: in any other case you need to grab the pdo-source from pear.php.net and compile it yourself.
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.Ree wrote:Nobody uses PDO?