Add mssql module to Ubuntu 7.10 PHP
déc 17th, 2007 by Prune
Believe it or not, but latest Ubuntu release 1) does not include the latest PHP yet and 2) does not include mssql module.
Reading the newsgroups and forums, it seems nobody have a real tutorial on how to add it. You will also notice that Ubuntu builders have no plan to include it one day… (even if it is free, not under specific licence and need almost no dependency (Freetds is needed but I don’t know if it is mandatory to build).
Whatever, I need this module, and I came with a working solution :
apt-get source php5 cd /usr/lib/php5/php5-5.2.3/ext/mssql phpize ./configure make make install
Just create a ini file in /etc/php5/conf.d/mssql.ini with :
# configuration for php MsSQL moduleextension=mssql.so
And restart you Apache server.
!! Be warned that the module may be removed at the next package upgrade !! You will have to compile it again.