Support MSSQL for PHP in Linux

Source: Internet
Author: User
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

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.