Ubuntu系统下配置PHP支持SQLServer 2005
最近在做一个项目,该项目的数据库是微软公司的的SQLserver ,数据库安装在另一台windows服务器上,而项目却部署在ubuntu server上。那么这样就会涉及到项目在linux上如何链接SQLserver ?在这里我用的是freetds 来做链接数据库的中间件,下面是我实践的步骤:
1.下载最新的freetds
访问 http://www.freetds.org/, 或者在 ubuntu上用 wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-stable.tgz 下载稳定的版本。
2.安装freetds 和 配置 freetds
cd 进入freetds所在目录,执行命令:
解压
tar zxvf freetds-stable.tgz
编译安装
./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib
make
[sudo] make install
configure 步骤和 make 步骤可以用 普通用户的权限来完成,install 步骤最好用root 用户,或者是对/usr/local/ 目录有读写的权限的用户.
配置:
编辑/etc/ld.so.conf,在其中插入一行:
/usr/local/freetds/lib
然后运行以下指令使更改生效:
ldconfig
编辑freetds 的配置文件,配置数据库连接信息
vim /usr/local/freetds/etc/freetds.conf 截图如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmgAAAIJCAIAAACeJVbhAAAgAElEQVR4nO3dQa70LJagYbIyq7JVJbWqe1BSdQ963FbuhEGvg4WwEFTL8OZ64DBxgHMwOOy4Efd7H/3S/10HBowdPgY7jHMAAAAAAAAAAAAAAAAAAADAH29d13VNYTlItoS0DiZ1zsfBhCP5+zhcLgAAt5sKSEtIg+mHEw7lP14uAAD3snp465pCqHuOagDb+4rrukb/XJiCz5+IlXL2WieSwAkA+HRVQAppj35LSE1sawNYSCKNj2sKeflz7eWZq/NeBFcRaY38+8sBAHi3IiAtIe2Rz2nhql6yhFSGPh8fn1dB8ZlwER3UlcAJAPg2ncD5DIPF54OBU03oo+igNmsTOAEAH68Zen0uKIZhnXP6UK1c4KMcqs0xOA/VysC8hESPEwDwdeqAJIZSU8rhSjzSUw2yakOv289RYnzmJHuZeeGWYO+JGvnvaxE4AQAfoROQPidcfU5NAAB/uvaHIaJPGOz13oY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ZqAeCD5ACmLt8+2j71zc3F0CR2ZSzs2MJk1QPrdN3UeNYvtx10lem9Xf+bAqcaAr3WXQ7lEDQA4INYgVN9WCaWQ6M5dlrjq4dFt4GkzartGXcSq+nzR0HLJ4k/8wbeETvVcVo1cLryISwAwAdJ/LAEAAAAAAAAAAAAAAAAAAAAAAAAAADgB/i4rmv66F95+rim8BHzboa0SiO18nE0JQDgI4QUj95M4+NnB87PIRtzCekwHC4hrdE7HwmcAPANlqqDtBZn/efCInA+P0gpdQPq1pd6dKfEH3XRTeYpLPvnzxqp5eZs2sAjCnhksiWOMVbLh5tnrms4cEWyI3ACwBfRzu9y7LMYqpW9KB+Ph3CLXpePOVTJxUtIRT772OX2722Nfrlt3y6ktSi3CLTPOHpjuFom4iaBEwC+iXKCr87jSxA9y9xzPO6x7ekfyZ5xSunKiaz0KNIrtw6BTdDKWRafHIWrV3qcU3GTwAkA32QycBbJRh4aeoQQ0d08uGl6GEWacm8KnK+YipsETgD4Js+g4+Pemaui3HNotIhQRaoOH1OoQlvvOVgtivTL1YZq5YJnnH5T4NT7m1unWWsyAicAfBOvPSxTjIzGfJuzHLwc7VQ9nh0taVnJUosCjHLr9M+PymHWfKP0+ee+6h0RyxinVQJnvQE8vQwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB8t/8PowlxiB9cZzkAAAAASUVORK5CYII=" alt="" />
在这里找到egServer70节点,配置你数据所在的服务器地址,一般端口不用改,除非数据库访问用的是其它端口。注意一般这个配置文件中是没有 client charset 的选项的,
需要手动添加,防止数据库乱码。这里设置成 utf8 , 这个编码要和数据库编码一致。修改完成之后就保存退出。然后验证这个配置是否是ok 的。
cd /usr/local/freetds/bin/ ./tsql -H [主机Host] -p 1433 -U [用户名] -P [密码] -D [数据库] (主机Host可以填写 egServer70)
注意你的密码有特殊字符例如 !和 # 之类的,那么需要加上转义符 \!\# ,这样就会被 freetds 识别。
如果执行该命令返回的是 如下信息
Unexpected EOF from the server
那说明是freetds 的版本信息不正确,关于freetds 版本的信息 可以参考 http://www.freetds.org/userguide/choosingtdsprotocol.htm
那么对应的版本信息修改只需要在 /usr/local/freetds/etc/freetds.conf 中修改 特定数据库连接的tds version ,这里我连接的是 SqlServer 2005 ,默认版本是 7.0 , 但是连接报错,所以这里我修改成了7.1 就ok 了,截图如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW8AAABtCAIAAADh4Xf8AAAJ3klEQVR4nO2dTZLjNhJGUe62e8KOmPB4MRFtL2Y9jLoJFnMOHAQHQfQxeDjPgiKYiT9CFFkUVe8FFiUQTICqzA8JSiKMMaMxozGDWWHUxa61N8b4ev2QNQi6Tf5SjtAa40qWrT4xZA1Cx5UaY9x8gfEyk2vpHE88N+nUZW9gPtTpRNfR3lV6r73/q8R+770uOTYvxrzNDlyPHp/LvaHnrOjxPmvvMx8adRft6DVaAa0xozFGx5WbK9t2iuTRu2088dy8UykH8u2V9TIga+1NXU0a73+jcdJvY6apqcA0vEQfN9iB67HqZ27ORyb/sPpl2/LUMu8i9+9gTBC5z6D7GkumZL20E4cX5kNtO+3rdeKUe8eTt897SeprxnvaJzlj4/3Pabw5+aHGdU2EUva6wQ5cjEYKehz5dLSqTQAAivYEe4q0AQAAAAAAAAAAAAAAAAB8DsZxHMfgHvguogvjDe99OPkj3mUw2YUN8ZiXX6yy/vG3AACMMQ9G0eBCtGD9OJ6vJotUyLEZ6+PYrNd6krQEgG2kUTSI2V1Jw20OH8fgnI+TeTUOK3am2uCG+bi3yvQgX9xrJ0Eqi/VimIM8YlpXAQD9JFEkw2pwIQawC3O8Di7odcES7iray3aMmcVjqrF+MpvmEXO032tnQUtGqiY6h0JNAHZARdGQ3HaY53wdfrXYW6K9ZmdCRbaondss5rfYWQYj9QU1ATgcHUW2fBs1Cb9qGEdFqNhpnn6Lf3VXY4udiWQxo6yy0gE4giSKrC9/uiHDzYXYRjcXUVqzMx2rilFwSVxvslPQCzM4L+4WcxcWYH/yKNKriznuxKIjhCDURKKMl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HWJ/b5/a3ZkvwFiZ9YaocWq1+U13IIjmaVEfWYviR3OQuMUFN4HzOUBPVrOfu7C2uRGKyciNmNbSyfg9Sk0e4S0xQEzifndRk9mTr52k/Cf1lZaHCVrVqYH1wSby3PoUphVa739JKR1Ys4vVBalLOTKb0qvSWoSZwOvs4ii3dlVQLCx9vnejcv3f6vX1yoSmZkr2qDir9pu2XQ3qVEm++LC/nU48I48oyp6Am6QUc8NkZagJd4CiwCk4CXeAosApOAl3gKLAKTgJd4CiwCk4CXRQdhUJZLQAppzsl5aIFIOV0p6RctACknO6UlIsWgJTTnZJy0QKQcrpTUi5a4Jn5PyOv1oifIpkuAAAAAElFTkSuQmCC" alt="" />
修改完成之后,再次测试如果返回的结果下,那么就说明连接数据库成功了。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmQAAACwCAIAAAAuQ+X7AAAVkElEQVR4nO3dza7kxnXA8ZIVC/YkSiIkkAQnwkwAw4iohYHRKgICK16aCxuId/F2FnyA0Sbr2sXAvEIB8xb9clnw61TVOcUqNtm3+97/bzNz2exi8fOwiuw6zgEAAAAAAAAAAAAAAAC4X90QLpfL5XIJQ3f/5ff+6nJ6f7lcLr4fK3bsWo9lj8UuK34Jw/jpMuHivZ8nNpWz/n81rYHyie8raxvNeeb2AYDH1g3h1Mvi2eU36IYwxoDeVwSUZr2XK9ovQVFugd6vEbSpnKWQ3k81l9t1CGJtuuivXDeEZeWX0uYPTtw+APDA1GAmGivRNXNtkYRh/d46VWmOKOXLVtJW5HDFFupaUAhhs6huCOP6jCGri6Yn9Rmnea82wXQ1wbKGVc78t1KVMTxWLkgG0+gr1vYBAORX2CGIK2Xvl/jR+zVkLI0Q55zr+158N7mUa+XH1+eKeKmW09piW7tyu6iaVn2W2KEuXSvdDHIiqG+v7K5gad6s6EvQb1b07QMAyMJA1ok3X7vTq3b0Fft5mVJ+6xM2tZyxao2FbFZeFhVtiTiCqcpBbl3arm5Y8Xdly1JunHgT9V60LD0tSADYdnWw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Dr/+O/Vh6KDd9NTp1zTyUVuWTOmQvZNWUky5aecYTF5IdQPX36dmD/IjWTReGwc8fWceVfby1nBfpF7I5lVhp95rbb6I0BUt98zj9ULGvD3P9tdsg/RvWQ+ymQzR6HShu5C/Tkzyj6nKXn46kx7yqfHwe1CsOAGfizX08KQ5AAI+BxM54MjQrAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHsP/A9DD1nJQAdP6AAAAAElFTkSuQmCC" alt="" />
3.php 连接 SQLserver
上面的测试直接用freetds 测试数据库是否可以链接数据库,那么怎么才能让php也支持SqlServer 呢? 这里需要用到php5的开发者模式,之前我默认只安装了php5,
所以这里你需要安装一下php5-dev ,直接用命令
[sudo] apt-get install php5-dev
安装完成后在/usr/bin 目录下就会看到 phpize5 等相关php 开发这模式的插件
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcAAAAB2CAIAAADQo9T4AAASi0lEQVR4nO2dvbGzPBCF6cEdEDoi9tAA45gWmHEhzmnBTZC4FBXDDQBpV9oVEra5/jnPfMH3YrFa4+vj1Q+HogAAAAAAAAAAAAAoiqIojpfb7XJEfADAl3O83O73+/1+9yRDO57A+Xq/np+Yoh7/fF1J8Hx9Sf7TxdnwJo+X20svDQDgH9Bqrg212M7l4dN7S8w/WwrP57M963i5osIF4Gt4noCy8o1WauerX88uNe79frvdbhd68HY5LiWwJ1N+eXi53S5nG8mFFyvoOZ/rdek41EAW/3K73++3y8W2Z/GvF9vvfEqk/fz+w+MAgE/nWQIatmeV2vlqX6Utz9f7fRHQ5d/LkfOVilwYf9as4/Iy10QxH6t34qtS/CUmiX+83Gy/9Cyt/fyv2wXzqwB8G08SUGH2UBNQXpLxs1izlfieZHoj63RBz42vxYnkM//v8XKjvxYAgE/nKQIqNo4KljvuVaDpyXjHHhHQrPi6gMbyAQB8Ic8QUHnx2kWgg15PaLxTZQGV409BXWcJQ3i9Il6Lb6vIaAUqtgcAfB9saYOMpr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W9K+mkfRgDek2wBZeUbrdSme8K49gm+h6Jvoxa/mAS0s0XZir9hzP9Riv+OfouqgP6yDyMA/41803umgMb8BAtmahDzPZR8G7X4s2Y5l7B1f0PZ/zEW/538FvUh/A/7MALwDoS2S3kCKsweqn6LEd9DyTVHi5/rb6jnkxf/H/0WHcyt55d9GAF4C85X77uXI6AxM8QJTRm576HWLMsPUTslks8H+i3ClhGAt2FeOKJkCKi8eO0k41Q1ZAZQ9z3UBDTBDzFryOx39Bl+i5Vp6TRIaJIGAPgH7txz139GxNqoMDo4XVZU+pr4Eq4+z2DdR3LaxkT8DYkSSUPguP/jp/gtwlMHgC/j030k4bcIAABPBX6LAAAAAAAAAADenVH5DwAAwAoQUAAA2AgEFAAANgIBBQCAjUBAAQBgIxBQAABI5g+j3Bm2/7lvKgAAAABJRU5ErkJggg==" alt="" />
这里我默认安装的是php5.5.9 ,所以需要下载 php5.5.9的源码,然后进入 ext/mssql/ 编译对SQLserver 的支持。
源码下载地址:http://us2.php.net/get/php-5.5.9.tar.xz/from/this/mirror
同样也可以用 wget 下载。
下载后用 tar xf php-5.5.9.tar.gz , 然后进入到解压后的 ext/mssql 目录执行以下命令:
/usr/bin/phpize5
./configure --with-php-config=/usr/bin/php-config5 --with-mssql=/usr/local/freetds/ 注意:--with-php-config配置实为phpize5相关
make
[sudo] make install
安装成功后,你可以在 /usr/lib/php5/20121212 这目录下有 mssql.so ,当然这个文件的大体目录是位于 /usr/lib/php5 ,至于后面有年月日组成的这个文件夹,在不同不服务器上是不一样的。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAP0AAACRCAIAAACHYSmKAAAG60lEQVR4nO3dQXKyMBjGce7QG7hk5brDBZysuYIzOUj2vUIu4SZH8TB+CwTexASJHyiS/29ctBgDhse30aa0qgAAAADgqVpbq2v6/5b9rm2Lz6vW1jnnnAuOLLV9BmWcUQse4mT/08epjLddmTlP6PnxdzvNe5LDgbrUQ8P9Dg9InZqgG2Xi45DqZ+32qee1Ial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26x8AR+QPiPkM1AAAAABJRU5ErkJggg==" alt="" />
接下来就编辑php.ini 配置文件 /etc/php5/apache2/php.ini
在文件中加上 extension=mssql.so
然后重启 [sudo] apache service apache2 restart
在/var/www/html 目录下新建 index.php 文件,cat index.php
echo phpinfo();
然后访问 localhost/index.php ,你就可以看到 mssql 的支持了
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAArgAAAHzCAIAAABE1flKAAAgAElEQVR4nO3dS44jR7atYRuRBqBGzKBacWZQgJDA6URfZwgJXHVVA9EoOIMajG4jK1lOd3tsOh9um/x+LCRIC/Pt5r5JW4vMDKn8DQAA0KAcvQAAADAvggIAAGgiKAAAgCaCAgAAaCIoAACAJoICAABoIigAAIAmggIAAGgiKAAAgCaCAgAAaCIoAACAJoICAABoIigAAIAmggIAAGgiKAAAgCaCAgAAaCIoAACAJoICAABoIigA+Pvvv//9x6/lv/z6x7+PXhCASRAUACz46zdBAcASQQHAAkEBwCWCAoAFggKASwQF4Eh++HKDpV1f/BuCX//4649fV25+3YTf/vrrt1LKb3/VFyQoAPiJoAAcy0///u2vc2r47a+foz+N/MdP/vPs5xFLNx9N+E/p/4ycM4OgAGCEoAAcyw/T/u2v88Nf//j336ugcBED/jvy34HBhFXsqI5cVBIUAPxEUACOJRIU/vsVQMvBuxP+88PK32QICgBGCArAsYSCwmLm+R8ZtEptJ1SKCQoAgggKwLHEg8LlEa2fViYICgD2IygAxxIICv/+49e1d1/+o4TRhP/8U0b/RgHA9QgKwLFEg0LlHy+e7fzaCedfyhQUAIwQFIAj+e9/R+HXX3+tPPxh2X/99usff6z+iwsXXj6c8Pflf7Lhtz/W3yhc/r8ezvMaf7kB4H0QFIB3pPdvIABggaAAvCOCAoAgggLwbvg/SgO4AkEBAAA0ERQAAEATQQEAADQRFAAAQBNBAQAANBEUAABAE0EBAAA0ERQAAEATQQEAADQRFAAAQBNBAQAANBEUAABAE0EBAAA0ERQAAEATQQEAADQRFAAAQBNBAQAANBEUAABAk/sHhQI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Oy9RIvGbpGhcUgSFQEVeTjST+E1SNC4pgkKgoqBANJP4TVI0LimCQqCioEA0k/hNUjQuKYJCoKKgQDST+E1SNC4pgkKgIgAAb8zdjfVYfKNA9OIqPpjmROOSIigEKgoKRDOJ3yRF45IiKAQqCgpEM4nfJEXjkiIoBCoKCkQzid8kReOSIigEKgoKRDOJ3yRF45IiKAQqCgpEM4nfJEXjkvJ6QeH/A9atORznxpVFAAAAAElFTkSuQmCC" alt="" />
这说明php已经support SQLSERVER 数据库了,如果你想测试下能不能把数据取出来,那么可以写一下demo 的 code,新建 test.php
header("Content-type: text/html; charset=utf-8");
$msdb=mssql_connect("Host:1433","username","password");
if (!$msdb) {
echo "connect sqlserver error";
exit;
}
mssql_select_db("database_name",$msdb);
$result = mssql_query("SELECT top 5 * FROM table", $msdb);
while($row = mssql_fetch_array($result)) {
var_dump($row);
}
mssql_free_result($result);
到这里所有的步骤已完成。
Ubuntu系统下配置PHP支持SQLServer 2005的更多相关文章
- ubuntu系统下配置php支持SQLServer数据库
最近在做一个项目,该项目的数据库是微软公司的的SQLserver ,数据库安装在另一台windows服务器上,而项目却部署在ubuntu server上.那么这样就会涉及到项目在linux上如何链接S ...
- 在一个Ubuntu系统上配置Apache支持多个站点
查看原文请访问:http://codewenda.com/ubuntu16-04%E9%85%8D%E7%BD%AEapache%E6%94%AF%E6%8C%81%E5%A4%9A%E4%B8%AA ...
- Ubuntu系统下配置IP地址方法介绍
配置IP方式有两种: 1.通过命令直接配置 sudo ifconfig eth0 IP地址 netmask 子网掩码------配置IP地 sudo route add default gw 网关-- ...
- Ubuntu系统下安装并配置hive-2.1.0
说在前面的话 默认情况下,Hive元数据保存在内嵌的Derby数据库中,只能允许一个会话连接,只适合简单的测试.实际生产环境中不使用,为了支持多用户会话, 则需要一个独立的元数据库,使用MySQL作为 ...
- Ubuntu系统下的多路径软件 DM Multipath 配置。
Ubuntu系统下的多路径软件是操作系统自带的 DM Multipath工具.------------------------------------------------------------- ...
- ubuntu系统下安装pyspider:搭建pyspider服务器新手教程
首先感谢“巧克力味腺嘌呤”的博客和Debian 8.1 安装配置 pyspider 爬虫,本人根据他们的教程在ubuntu系统中进行了实际操作,发现有一些不同,也出现了很多错误,因此做此教程,为新手服 ...
- Ubuntu Nginx下配置网站ssl实现https访问
最近在看 HTTP权威指南 看到介绍了HTTPS的ssl,自己就动手测试了下,将步骤记录下 HTTPS简介 什么是HTTPS?百科是这样解释的.HTTPS(全称:Hyper Text Trans ...
- Ubuntu系统下允许Apache的mod_rewrite功能
首先,使能apache的rewirte模块,在shell里输入下边的命令: sudo a2enmod rewrite 然后重启一下webserver使更改生效 sudo service apache2 ...
- Tex_安装_在Ubuntu系统下
$\LaTeX$是一个强大的排版软件,在数学公式.表格.甚至是科学绘图方面有着独特优势.本文在Ubuntu系统下,整理Tex安装相关的操作,以为备忘.所引链接都未同作者商量,如有不妥望及时告知. 命令 ...
随机推荐
- 利用Swoole实现PHP+websocket直播,即使通讯
websocket Websocket只是一个网络通信协议,就像 http.ftp等都是网络通信的协议一样:相对于HTTP这种非持久的协议来说,Websocket是一个持久化网络通信的协议: WebS ...
- 【HDU2007】平方和与立方和
http://acm.hdu.edu.cn/showproblem.php?pid=2007 垃圾水题 随便搜了几个公式(但我实际写的暴力...题目保证不爆int,说明n,m<=10^3) 1^ ...
- hdu 1027 Ignatius and the Princess II(产生第m大的排列,next_permutation函数)
题意:产生第m大的排列 思路:使用 next_permutation函数(头文件algorithm) #include<iostream> #include<stdio.h> ...
- Laravel实践-自定义全局异常处理
在做API时,需要对一些异常进行全局处理 百牛信息技术bainiu.ltd整理发布于博客园比如添加用户执行失败时,需要返回错误信息 // 添加用户 $result = User::add($user) ...
- Code-zabbix:zabbix-3.4-快速入门
ylbtech-Code-zabbix:zabbix-3.4-快速入门 1.返回顶部 1. 1 登陆和配置用户 登陆Zabbix,以及在Zabbix内建立一个系统用户. 用户名:Admin 或者 ad ...
- http://www.cnblogs.com/Javame/p/3632473.html
http://www.cnblogs.com/Javame/p/3632473.html
- bzoj 5019: [Snoi2017]遗失的答案【dp+FWT】
满足GL的组合一定包含GL每个质因数最大次幂个最小次幂,并且能做限制这些数不会超过600个 然后质因数最多8个,所以可以状压f[s1][s2]为选s1集合满足最大限制选s2集合满足最小限制 dfs一下 ...
- bzoj 4259 4259: 残缺的字符串【FFT】
和bzoj 4503 https://www.cnblogs.com/lokiii/p/10032311.html 差不多,就是再乘上一个原串字符 有点卡常,先在点值下算最后一起IDFT #inclu ...
- 简述网站、B/S架构与C/S架构
一.什么是网站? 定义:网站是指在因特网上根据一定的规则,使用HTML等工具制作的用于展示特定内容相关网页的集合. 简单地说,网站是一种沟通工具(或者说是一种软件——建设网站也是软件开发的一种),我们 ...
- Beta版本冲刺第一天!
该作业所属课程:https://edu.cnblogs.com/campus/xnsy/SoftwareEngineeringClass2 作业地址:https://edu.cnblogs.com/c ...