Mssql ubuntu

Posted on 20 May 2009. Filed under: Komputer, Linux | Tags: , , |

Install the Debian Package tools:

apt-get install build-essential debhelper

download the PHP5 Source Files

apt-get source php5

Get the dependencies for building PHP5

apt-get build-dep php5

cd to the directory php5-5.1.2/debian and vi the file modulelist. Insert a line above the one that says:

mysql MySQL

with the contents

mssql MSSQL

Next, edit the file rules and search for


Insert the following above it:


Make sure not to forget the backslash on the end.Now, we must edit the “control” file in the same directory. Add this to the end of the file:

Package: php5-mssql
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${php:Depends}, php5-common (= ${Source-Version})
Description: MSSQL module for php5
This package provides a module for MSSQL using FreeTDS.
PHP5 is an HTML-embedded scripting language. Much of its syntax is borrowed
from C, Java and Perl with a couple of unique PHP-specific features thrown
in. The goal of the language is to allow web developers to write
dynamically generated pages quickly.

Move up a directory:

cd ..

Now run:


This will compile PHP5 and create the debs in the parent directory. This process takes a while, so relax.

When that is finished, cd to the parent directory and you will see your deb files.

Now, to install php5-mssql:

dpkg -i php5-mssql_5.1.6-1ubuntu2.1_i386.deb


aptitude install php5-sybase


Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

  • Siapa sih ini ?

  • Kategori

  • Masa Lalu

  • Follow me…

  • Apaan nih ?

  • Yang tersesat

    • 110,323 orang
  • Paling menyesatkan

    • Almanak

      May 2009
      M T W T F S S
      « Mar   Jun »

    Liked it here?
    Why not try sites on the blogroll...

    %d bloggers like this: