It's easy. First, we need to download and install MSSQL in Linux to support Freetds, and then re-compile (compile) in the PHP installation source folder and then install it -------
It's easy. First, we need to download and install MSSQL in Linux to support Freetds, and then re-compile (compile) in the PHP installation source folder and then install it -------
Homepage → Database Technology
Background:
Read News
Support MSSQL for PHP in Linux
[Date: 2010-04-16] Source: Linux community Author: Linux [Font:]
It's easy. First, we need to download and install MSSQL in Linux to support Freetds, and then re-compile (compile) in the PHP installation source folder.
-------------------------------------------
# Wget
# Tar zxvf freetds-stable.tgz
# Cd freetds-stable.tgz
#./Configure -- prefix =/usr/local/freetd
# Make
# Make install
Go to the PHP installation folder
Php5.2.5
./Configure \-prefix =/usr/local/php \
-With-apxs2 =/usr/local/apache/bin/apxs \
-With-mysql =/usr/local/mysql \
-With-mysqli = path \
-With-mssql =/usr/local/freetd \
-With-freetype-dir \
-With-zlib-dir \
-With-jpeg-dir \
-With-png-dir \
-With-gd \
-With-config-file-path =/usr/local/lib \
-With-libxml-dir =/usr/lib \
-Enable-ftp \
-Enable-safe-mode \
-Disable-debug
Make
Make install
Cp php. ini-dist/usr/local/lib/php. ini
0
Solution to the 1045 error during MySQL Installation
Install Oracle 11g R2 on Fedora 12
About Linux
Image Information
View All comments in this article (1)
Comments
1st Floor
Latest Information
Popular this week
Introduction to Linux community-advertisement service-website map-help Info-contact us
The articles published on this site (LinuxIDC) do not mean that they agree with the statement or description. They only provide more information and do not constitute any suggestions.
Copyright©2006-2011 Linux community All rights reserved Zhejiang ICP backup No. 06018118