Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: php5-mssql

  1. #1
    Join Date
    Jul 2006
    Location
    Jackson, MS
    Beans
    37
    Distro
    Gutsy Gibbon Testing

    php5-mssql

    I upgraded a server to Edgy and had some problems with php. I need php5-mssql installed but it tells me "Package php5-mssql is not available, but is referred to by another package.". How can I tell what package it is referred to now?
    Thanks

  2. #2
    Join Date
    Oct 2004
    Location
    Kingston, On
    Beans
    Hidden!

    Re: php5-mssql

    There never has been a php5-mssql package.

  3. #3
    Join Date
    Jul 2006
    Location
    Jackson, MS
    Beans
    37
    Distro
    Gutsy Gibbon Testing

    Re: php5-mssql

    Quote Originally Posted by azz View Post
    There never has been a php5-mssql package.
    This is the output from 'dpkg -l php5-mssql' on my dapper server:

    ii php5-mssql 5.1.2-1ubuntu3.4 MSSQL module for php5

    This is the output from the same on my Edgy Server:

    pn php5-mssql <none> (no description available)


    It is installed on my Dapper server, but what package do you use to mssql on Edgy???

  4. #4
    Join Date
    Jul 2006
    Location
    Jackson, MS
    Beans
    37
    Distro
    Gutsy Gibbon Testing

    Re: php5-mssql

    This is strange, it looks like they combined the php5-mssql install with something else, but I can't figure out what.

  5. #5
    Join Date
    Jul 2006
    Location
    Jackson, MS
    Beans
    37
    Distro
    Gutsy Gibbon Testing

    Re: php5-mssql

    Ok, here is the fix to get php5-mssql installed:

    Install the Debian Package tools:
    Code:
    apt-get install build-essential debhelper
    Then, download the PHP5 Source Files:
    Code:
    apt-get source php5
    Get the dependencies for building PHP5:
    Code:
    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:
    Code:
    mysql MySQL
    with the contents
    Code:
    mssql MSSQL
    Next, edit the file rules and search for
    Code:
    –with-mysql=shared,/usr
    Insert the following above it:
    Code:
    –with-mssql=shared,/usr
    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:
    Code:
    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:
    Code:
    cd ..
    Now run:
    Code:
    dpkg-buildpackage
    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:
    Code:
    dpkg -i php5-mssql_5.1.6-1ubuntu2.1_i386.deb
    The majority of the information from this post came from the following URL:
    http://panthar.org/2006/06/15/php-wi...on-ubuntu-606/

  6. #6
    Join Date
    Oct 2004
    Location
    Kingston, On
    Beans
    Hidden!

    Re: php5-mssql

    Why is that dissabled in the source? Are there licencing issues?

  7. #7
    Join Date
    Jul 2006
    Location
    Jackson, MS
    Beans
    37
    Distro
    Gutsy Gibbon Testing

    Re: php5-mssql

    I'm not sure if it's a bug or what, but we had no problems installing it when the server was Dapper. When we did an in-place upgrade to Edgy, the package wasn't available anymore. So either, the package isn't there in the edgy repos, or there is another package that installs php5-mssql, but I couldn't find it if there is.

  8. #8
    Join Date
    Jul 2006
    Location
    Jackson, MS
    Beans
    37
    Distro
    Gutsy Gibbon Testing

    Re: php5-mssql

    Oh yeah, another "note to self", Don't compile PHP5 from the server, because for some reason it uninstalls PHP5 from the server when you do that and you have to go back and reinstall everything. Also, when PHP5 get's uninstalled, or course it removes PHP5 from mods-enabled in Apache2.

    That took me 10 minutes to figure out...DUH!

  9. #9
    Join Date
    Oct 2004
    Location
    Kingston, On
    Beans
    Hidden!

    Re: php5-mssql

    Quote Originally Posted by hogman23 View Post
    So either, the package isn't there in the edgy repos, or there is another package that installs php5-mssql, but I couldn't find it if there is.
    There is no php5-mssql package in any release of Ubuntu.

  10. #10
    Join Date
    Jul 2006
    Location
    Jackson, MS
    Beans
    37
    Distro
    Gutsy Gibbon Testing

    Re: php5-mssql

    Quote Originally Posted by azz View Post
    There is no php5-mssql package in any release of Ubuntu.
    Hmm, I wish I knew what installed it on the old server then, that would have saved me a bunch of work.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •