<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Panthar's Lair - Latest Comments in HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.disqus.com/</link><description>Adventures of a Professional Computer Tamer</description><language>en</language><lastBuildDate>Wed, 04 Jun 2008 10:17:07 -0000</lastBuildDate><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173812</link><description>A couple of other additions for the rank tyros:&lt;br&gt;&lt;br&gt;The debian build directory in PowerPC 6.06.x is:&lt;br&gt; /usr/bin/php5-5.2.4/debian&lt;br&gt;&lt;br&gt;If editing with vi, while in the rules file, use the command "yy" to YANK the mysql line and the "p" command to copy it again.  Edit the copied line.  This will help preserve formatting, whitespace, tabs, returns, linefeeds, etc.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michelle</dc:creator><pubDate>Wed, 04 Jun 2008 10:17:07 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173804</link><description>This was extremely helpful, thank you for taking the time to share it :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James</dc:creator><pubDate>Mon, 28 Apr 2008 10:24:09 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173809</link><description>so I poked and prodded and got it sorted out:&lt;br&gt;&lt;br&gt;I entered:&lt;br&gt;$ sudo apt-get install libsnmp-dev&lt;br&gt;&lt;br&gt;...then tied this again:&lt;br&gt;$ sudo apt-get build-dep php5&lt;br&gt;&lt;br&gt;...and followed the rest of the instructions and everything worked! I was very glad to have an excellent guide. Thanks Robert!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jacob Boyko</dc:creator><pubDate>Mon, 03 Mar 2008 18:04:42 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173808</link><description>Hi, problem with the `apt-get build-dep php5` step:&lt;br&gt;(I'm running Ubuntu 7.10 server with LAMP installed  - this is a fresh install, so there's not much else on it.) Linux is a pretty fresh install in my head too.&lt;br&gt;&lt;br&gt;When I run `$ sudo apt-get build-dep php5` I get the following errors:&lt;br&gt;E: Package libsnmp10-dev has no installation candidate&lt;br&gt;E: Failed to process build dependencies&lt;br&gt;&lt;br&gt;I had ignored this and proceeded with the rest of the instructions (which are well written and easy to follow - thanks!) so when I ran `sudo dpkg-buildpackage` I got the following:&lt;br&gt;&lt;br&gt;dpkg-checkbuilddeps: Unmet build dependencies: [...list omitted...]&lt;br&gt;dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.&lt;br&gt;&lt;br&gt;Any suggestions?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jacob Boyko</dc:creator><pubDate>Mon, 03 Mar 2008 11:58:04 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173810</link><description>Hi I am having problems to use FreeTDS do I need to have a ODBC installed to use with PHP or not?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andre Luiz</dc:creator><pubDate>Mon, 11 Feb 2008 09:57:03 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173813</link><description>Thanks !</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bryan Gruneberg</dc:creator><pubDate>Wed, 06 Feb 2008 10:24:14 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173807</link><description>Hey, many, MANY thanks! How else would I know that Debian ships PHP w/o MSSQL support? Website now works great!&lt;br&gt;&lt;br&gt;Regarding the "And go get something to eat." part: On my machine (2 CPUS, 350MHz each, 320MB of RAM) the "eating" part takes over 3 (nearly 4) hours :)))</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joro</dc:creator><pubDate>Tue, 20 Nov 2007 11:49:06 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173811</link><description>This worked for me with Ubuntu 7.04.  Thank you so much!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joe</dc:creator><pubDate>Tue, 23 Oct 2007 11:48:39 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173805</link><description>I'm getting the following error message:&lt;br&gt;tkn@tkn-laptop:~$ sudo apt-get source php5&lt;br&gt;Reading package lists... Done&lt;br&gt;Building dependency tree       &lt;br&gt;Reading state information... Done&lt;br&gt;E: Unable to find a source package for php5&lt;br&gt;tkn@tkn-laptop:~$&lt;br&gt;&lt;br&gt;Any ideas?&lt;br&gt;(I'm running Ubuntu 7.10)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">troels</dc:creator><pubDate>Wed, 17 Oct 2007 09:37:20 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173806</link><description>Thanks for the tips, this method works perfectly on Debian etch as you'd expect. I just switched from Fedora Core 6 and let me assure you, the process for introducing MSSQL functions was just as fiddly! However thanks to your article I was able to find the answer in minutes.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ian Tomkinson</dc:creator><pubDate>Mon, 20 Aug 2007 11:24:20 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173814</link><description>Aiden, make sure that you don't have any extra spaces or line feeds right after you insert the text in the rules file. I had the same problem using one text editor. I used a different text editor (gedit) and tried it again and it worked.&lt;br&gt;&lt;br&gt;Great article, by the way. I've been trying to figure out how to compile GMP with PHP5 in Ubuntu to create a PHP5-GMP package, and this worked perfectly.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith</dc:creator><pubDate>Thu, 16 Aug 2007 08:13:28 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173803</link><description>Someone please help :)&lt;br&gt;&lt;br&gt;I'm getting "configure: error: recode extension can not be configured together with: imap mysql". Apt-get remove php5-imap says the package is not installed. Any help would be greatly appreciated.&lt;br&gt;&lt;br&gt;Thanks</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Justin</dc:creator><pubDate>Thu, 26 Jul 2007 17:01:00 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173799</link><description>is this also application to sybase. i'm having problem with sybase_connect. with this solution, do i have to install sybase openclient or the ase packages?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">squibbon</dc:creator><pubDate>Thu, 17 May 2007 20:55:49 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173802</link><description>@Sam Alex:&lt;br&gt;&lt;br&gt;I noticed that you installed "dpkg -i php5-mysql_5.1.6-1ubuntu2.4_i386.deb".&lt;br&gt;You need to install the .deb with "mssql" in the name, not "mysql", if you need to get mssql functionality.&lt;br&gt;It gets built into its own package, not bundled in with mysql.&lt;br&gt;Hope this solves your problem!&lt;br&gt;&lt;br&gt;    -Robert</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">panthar</dc:creator><pubDate>Mon, 07 May 2007 12:51:43 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173801</link><description>Hmm, it jumbled up my code.  I pulled the sample code &lt;a href="http://us.php.net/mssql" rel="nofollow"&gt;http://us.php.net/mssql&lt;/a&gt; , search for comments by "marcos1979ar at yahoo dot com dot ar".&lt;br&gt;&lt;br&gt;Thanks -- &lt;br&gt;&lt;br&gt;Sam</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam Alex</dc:creator><pubDate>Mon, 07 May 2007 12:02:15 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173800</link><description>Hi Everyone.  I went through this tutorial, and all went as expected.  However after installation, I ran the following:&lt;br&gt;&lt;br&gt;-- Installed the newly compiled packages&lt;br&gt;dpkg -i php5-mysql_5.1.6-1ubuntu2.4_i386.deb&lt;br&gt;dpkg -i php5-mysqli_5.1.6-1ubuntu2.4_i386.deb&lt;br&gt;-- Restarted Apache services&lt;br&gt;/etc/init.d/apache2 restart&lt;br&gt;&lt;br&gt;This is all on Ubuntu 6.10 Server setup with LAMP during installation.  Next I tried to run the follow script to test this, of course I plugged in my server's IP Address and login info, plus a valid database and table.:&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;", "sa", "");&lt;br&gt;mssql_select_db ("", $con);&lt;br&gt;$sql= "SELECT * FROM ";&lt;br&gt;$rs= mssql_query ($sql, $con);&lt;br&gt;echo "The field number one is: ";&lt;br&gt;echo mssql_result ($rs, 0, 0);&lt;br&gt;mssql_close ($con);&lt;br&gt;?&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;And now here's what I get:&lt;br&gt;&lt;br&gt;&lt;br&gt;Fatal error: Call to undefined function mssql_connect() in /home/webuser/public_html/test.php on line 4&lt;br&gt;&lt;br&gt;Any suggestions?  Is there anyway to to verify the new packages are installed correctly?  &lt;br&gt;&lt;br&gt;Thanks for any suggestions.&lt;br&gt;Sam Alexander&lt;br&gt;&lt;a href="mailto:samalex@gmail.com" rel="nofollow"&gt;samalex@gmail.com&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam Alex</dc:creator><pubDate>Mon, 07 May 2007 11:59:49 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173797</link><description>Worked perfectly on a Debian Etch amd64 install too.&lt;br&gt;Great Job.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ben</dc:creator><pubDate>Thu, 26 Apr 2007 16:53:06 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173794</link><description>Great Job!&lt;br&gt;Thanks a lot for this, very useful guide and easy to follow up.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nicolas</dc:creator><pubDate>Sat, 31 Mar 2007 19:52:07 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173792</link><description>Thank you Matt and Robin for catching the extra blank line in the control file.  When I first wrote this, it worked as in this article, but when updating my PHP installation on 6.10 more recently, I came across the same issue.  I just forgot to update it in this article - thank you for reminding me, and I have fixed the code above.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">panthar</dc:creator><pubDate>Fri, 30 Mar 2007 10:36:53 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173796</link><description>Just to emphasise a point Matt makes above. I recently rebuilt php and at first I got an error when compiling. It turns out that you musn;t have a blank line in the section added to the control file after the first line Package: php5-mssql&lt;br&gt;The next line must follow without an intervening blank line, and not as shown in the article as below.&lt;br&gt;&lt;br&gt;Package: php5-mssql&lt;br&gt;&lt;br&gt;Architecture: any&lt;br&gt;Depends: ${shlibs:Depends}, ${misc:Depends}, ${php:Depends}, php5-common (= ${Source-Version})&lt;br&gt;..............&lt;br&gt;&lt;br&gt;Remove the blank line and it works.&lt;br&gt;Perhaps the article could be amended to make this clear.&lt;br&gt;&lt;br&gt;I would also add my voice the the question, why can't Ubuntu build this into the source as standard? It is a pain (even with the excellent instructions of this article) to have to go back and recompile it every so often to allow for other upgrades to the php5 package.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robin</dc:creator><pubDate>Fri, 30 Mar 2007 06:49:03 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173798</link><description>When i compile i get this error:&lt;br&gt;[CODE]&lt;br&gt;&lt;br&gt;=/usr/share/file/magic.mime --with-exec-dir=/usr/lib/php5/libexec \&lt;br&gt;                --without-mm \&lt;br&gt;                --with-curl=shared,/usr \&lt;br&gt;                --with-zlib-dir=/usr \&lt;br&gt;                --with-gd=shared,/usr --enable-gd-native-ttf \&lt;br&gt;                --with-jpeg-dir=shared,/usr \&lt;br&gt;                        --with-xpm-dir=shared,/usr/X11R6 \&lt;br&gt;                        --with-png-dir=shared,/usr \&lt;br&gt;                        --with-freetype-dir=shared,/usr \&lt;br&gt;                        --with-ttf=shared,/usr \&lt;br&gt;                        --with-t1lib=shared,/usr \&lt;br&gt;                --with-ldap=shared,/usr \&lt;br&gt;                --with-mhash=shared,/usr \&lt;br&gt;                --with-mssql=shared,/usr \ &lt;br&gt;configure: WARNING: you should use --build, --host, --target&lt;br&gt;configure: WARNING: invalid host type:  &lt;br&gt;checking for grep that handles long lines and -e... /bin/grep&lt;br&gt;checking for egrep... /bin/grep -E&lt;br&gt;checking for a sed that does not truncate output... /bin/sed&lt;br&gt;checking build system type... i486-pc-linux-gnu&lt;br&gt;checking host system type... i486-pc-linux-gnu&lt;br&gt;checking target system type... config.sub: missing argument&lt;br&gt;Try `config.sub --help' for more information.&lt;br&gt;configure: error: /bin/sh ../config.sub   failed&lt;br&gt;make: *** [configure-apache2-stamp] Error 1&lt;br&gt;[/CODE]</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aidan</dc:creator><pubDate>Mon, 26 Mar 2007 06:27:14 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173790</link><description>Thanks for the instructions, best I've found.  Anyone know why debian/ubuntu don't include the module by default?  Seems that would _really_ solve the issue</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">msch</dc:creator><pubDate>Wed, 14 Mar 2007 02:05:36 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173795</link><description>Thanks for these instructions!  &lt;br&gt;&lt;br&gt;This is a much *cleaner* way than I was going to do it... compiling all from source and manually figuring out the dependencies...  say 3-6 hours of work getting things right, as opposed to 15-30 minutes.&lt;br&gt;&lt;br&gt;Once again - much thanks!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">alan blount</dc:creator><pubDate>Wed, 14 Feb 2007 23:29:21 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173791</link><description>Hello,&lt;br&gt;&lt;br&gt;I did exactly as you describe above, but while running "dpkg-buildpackage" I get the following error:&lt;br&gt;&lt;br&gt;configure: error: unrecognized option: -â€“with-mssql=shared,/usr&lt;br&gt;Try `../configure --help' for more information.&lt;br&gt;make: *** [configure-apache2-stamp] Error 1&lt;br&gt;&lt;br&gt;Any suggestion?&lt;br&gt;&lt;br&gt;Thank you!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Klemens</dc:creator><pubDate>Thu, 01 Feb 2007 05:48:57 -0000</pubDate></item><item><title>Re: HOWTO: PHP with MSSQL on Ubuntu 6.06</title><link>http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/#comment-1173793</link><description>great stuff, just finished my 4th build of this on a different machine over the past 6 weeks!&lt;br&gt;&lt;br&gt;Matt: If you move up to the parent folder the php5-mssql extension should have been built anyway, just install it with dpkg -i, worked perfectly for me!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen</dc:creator><pubDate>Tue, 23 Jan 2007 19:50:36 -0000</pubDate></item></channel></rss>