CentOS 5.4 Linux 下的 PHP(FastCGI) 需要连接相关部门的SQL Server 2000数据库,配置了扩展FreeTDS扩展。

  1、编译安装FreeTDS
mkdir -p /data0/software/
cd /data0/software/
wget ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
tar zxvf freetds-stable.tgz
cd freetds-0.82/
./configure --prefix=/usr/local/webserver/freetds --with-tdsver=8.0 --enable-msdblib
make && make install
cd ../

echo "/usr/local/webserver/freetds/lib/" > /etc/ld.so.conf.d/freetds.conf
ln -s /usr/local/webserver/freetds/lib/libsybdb.so.5.0.0 /usr/local/webserver/freetds/lib/libsybdb.so.4
/sbin/ldconfig

rm -f /usr/local/webserver/freetds/etc/freetds.conf
vi /usr/local/webserver/freetds/etc/freetds.conf

  输入以下内容:
引用
[global]
        # TDS protocol version
;       tds version = 4.2

        # Whether to write a TDSDUMP file for diagnostic purposes
        # (setting this to /tmp is insecure on a multi-user system)
;       dump file = /tmp/freetds.log
;       debug flags = 0xffff

        # Command and connection timeouts
;       timeout = 10
;       connect timeout = 10

        # If you get out-of-memory errors, it may mean that your client
        # is trying to allocate a huge buffer for a TEXT field.
        # Try setting 'text size' to a more reasonable limit
        text size = 64512

        host = mssql.yourdomain.com
        port = 1433
        tds version = 8.0
        client charset = UTF-8


  2、编译安装PHP自带MSSQL扩展
  进入本地已存在的php-5.2.XX源码包目录:
cd /data0/software/php-5.2.XX/ext/mssql/
/usr/local/webserver/php/bin/phpize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config --with-mssql=/usr/local/webserver/freetds/
make && make install


  3、在php.ini配置文件中增加mssql.so
vi /usr/local/webserver/php/etc/php.ini

  增加一行:
引用
extension = "mssql.so"


  4、重启PHP FastCGI
/usr/local/webserver/php/sbin/php-fpm restart


  5、测试文件(test_mssql.php):





技术大类 » PHP/JS/Shell | 评论(171) | 引用(0) | 阅读(52153)
PK Boost Email
2022-6-27 18:40
Hello, welcome to  Here you can see all the Spanish dramas in high video quality. Watch today DAMO Chapter 5 sub video in Spanish here online. Keep watching Ver Doramas online, as well as Dormas Sub Español, right here.<a href="https://doramasmp4.lol/" target="_blank">Vicky Doramas 2021</a>
david Email Homepage
2022-6-27 18:43
Hello, welcome to  Here you can see all the Spanish dramas in high video quality. Watch today DAMO Chapter 5 sub video in Spanish here online. Keep watching Ver Doramas online, as well as Dormas Sub Español, right here.Vicky Doramas 2021https://doramasmp4.lol/
doramas
2022-7-8 16:35
today i visit doramasmp4 inwhich this all spainish doramas,corien doramas,japanese and chanies doramas available with newest episode.best quality of all aspects easy cotent with good graphics ..... <a href="https://doramasmp4online.me">doramasmp4</a>
seo Email
2022-7-8 17:15
Comprising of 25 units, purchasers can choose from 3 – 5 Bedrooms apartments. enchante condo
doramasmp4
2022-7-15 07:46
doramasmp4
2022-7-15 07:46
http://doramasmp.com
larypage Email
2022-8-2 22:58
Vea la reproducción de doramasflixs.net todos los capitulos de dorams aquí en DoramasVip en calidad de video HD.
larypage Email
2022-8-2 23:00
Vea la reproducción de todos los doramasflix.es capitulos de dorams aquí en DoramasVip en calidad de video HD. Ver y descargar Doramas y películas en sub español y sub latín
larypage Email
2022-8-2 23:02
Vea la reproducción de doramas-flix.net todos los capitulos de dorams aquí en DoramasVip en calidad de video HD. Ver y descargar Doramas y películas en sub español y sub latín
larypage Email
2022-8-2 23:04
Ver online doramasmp4 coreanas, chinos, Tailandia, Japones, Estrenos Doramas con subtítulos en español gratis.
hjkl Email Homepage
2022-8-11 15:38
Eddienel9810 Email
2022-8-11 17:43
I meet the same problem but I solve it, luckily. Thanks for sharing google feud
Apkimod Email Homepage
2022-8-16 02:31
这是一条隐藏评论或留言。您需要以合适的身份登入后才能看到。
meta Email Homepage
2022-8-18 15:36
Thank you because you have been willing to share information <p><a href="https://meta-bet.pro/">รับทำเว็บพนัน</a></p>
meta Email Homepage
2022-8-18 15:37
<p><a href="https://meta-bet.pro/">รับทำเว็บพนัน</a></p>
doramas Email Homepage
2022-9-5 04:50
Are you new to K-dramas? We'll fill you in with everything you need to know about Korean dramas. Read on to know about them on doramasmp4https://doramasmp.com
doramas Email Homepage
2022-9-5 04:50
If you’re a fan of Korean dramas and movies http://doramasmp.com
PowerAPK Email Homepage
2022-9-7 17:07
Hey everyone!https://mytechhubed.blogspot.com- In conclusion, Power APK is a great tool for Android users. It is easy to use and it doesn’t require a rooted device. Power APK is also constantly updated, so you can be sure that you’re using the latest features. If you want to try Power APK, visit our site.In this post, I'll be talking about the APK. This is a MOD app that allows you to get unlimited power in the game.Power APK is the best way to get paid apps for free. It's fast, easy, and safe. Just visit our site to get started. I'll be explaining how the Power APK works, and how you can use it to your advantage. I'll also be giving some tips on how to get the most out of the app.Looking for the latest and greatest in MOD apps? Then look no further than Power APK! Power APK is the ultimate destination for the latest and greatest MOD apps for Android devices. From the latest and greatest games to the hottest new apps, Power APK has it all! But that's not all! Power APK also offers a wide selection of customization options for your Android device. From custom ROMs to root-only apps, Power APK has everything you need to take your Android device to the next level! So what are you waiting for? Head over to Power APK today and check out the latest and greatest in MOD apps!"Power APK" Free and safe Android APK site downloads and follow Power APK, power APK Updates, Download APK for Android Faster. Best of all mod apps for android, it's free. There Are Many types of apps and games , mod apps, Apk mod, Apk, vidmate apps, Power games, Power Apps, Power APK, games, Apps and apk+apps download.Thanks for reading, and I hope you enjoy the post!
天客 Email Homepage
2022-9-17 17:01
简单介绍一下非洲多哥417224虚拟信用卡虚拟卡的开卡技术。417224虚拟卡是一款来自非洲多哥的虚拟卡,Debit借记卡类型,Prepaid预付卡等级。这款虚拟卡传说在跨境电商,亚马逊测评,跑Fb广告方面表现出色。有时候大家不必总盯着美国虚拟卡资源,那种非洲小国目前也有很多金融科技公司在运营虚拟卡项目。之前介绍过的AfriPay就是一款非洲虚拟卡运营商,虽然是非洲公司,但发行的虚拟卡却是美卡。有很多原因导致你的信用卡不安全或不可控,例如,你订阅了一些服务,每月需要一定的金额,如果这个网站出现错误或以任何其他方式,你不能取消订阅,你将失去你的钱。另一个例子是,当你尝试一些国际支付网关时,他们实际上不需要任何授权(如OTP或密码/PIN)就可以从你的账户中扣款,所以如果你不仔细阅读和理解他们的条款和条件,你就会损失金钱,传统的信用卡问题清单是如此之长和复杂,我们当然不能在这里完全讨论。下面我为你提供ICICI银行的常见问题,这将满足你所有的关注和疑问。什么是虚拟信用卡?虚拟信用卡(VCC)是在你的主信用卡上发行的Visa信用卡的附加卡。它没有任何塑料的存在。所有相关的细节,即卡号、"有效日期"、到期日和CVV号码都可以在网上看到。虚拟信用卡使你能够以你选择的信用额度进行网上交易。对于您的ICICI银行虚拟信用卡的所有交易,每消费200卢比,您将获得1分。2. 它比我在钱包里携带的信用卡更安全吗?您的虚拟信用卡的关键细节,如卡号、到期日等,都可以在网上看到。你可以使用这些细节进行网上交易,而不必担心丢失你的卡或不得不把它 "安全 "地放在你的钱包里。此外,你不必等待实体卡和ATM密码到达你的住所。3. 我如何使用虚拟信用卡?由于没有发行实体塑料卡,它只能用于网上交易。4. 我的虚拟信用卡有多少额度?我可以根据自己的需要改变额度吗?你的虚拟信用卡的初始信用额度将是Re.1/-。你可以在主卡的总限额内改变你的虚拟信用卡的最高限额。5. 我如何为我的虚拟信用卡交易付款?用虚拟信用卡进行的交易将在您的主信用卡账单中在线显示。您可以通过Infinity进行支付。6. 我可以在网上申请封锁虚拟信用卡吗?是的,您可以在线即时封锁您的虚拟信用卡。7. 在任何时候发行/持有(VCC)都要收取任何形式的费用吗?没有。目前,该卡是免费的。8. 是否也可以向附加卡持有者发放单独的卡?不可以。虚拟信用卡只能发给主卡持有人。9. 9.CVV号码是怎样的?每次使用该卡进行网上交易时,它是否会改变?只要该卡处于激活阶段,CVV就不会改变。只有当你因某种原因将目前的卡列入热名单并要求换卡时,CVV才会改变。VCC是一张国际卡吗?是的,它是一张国际有效的Visa信用卡。<a href="https://www.tianic.com/2204.html">
khan Email Homepage
2022-9-22 22:09
Here i Will Provided All Dramas and Entertainment pleas Clik Here<a href="https://kissasiantv.biz/dramacool" color="Green"> All About Dramas on kissasiantv.biz </a>
分页: 7/9 第一页 上页 2 3 4 5 6 7 8 9 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]