Ubuntu _php Tutorial for configuring development environments via APT

Source: Internet
Author: User
Tags install redis
Apt-get Install vimapt-get install SSH
Apt-get Install Apache2
Apt-get Install Redis-server
Apt-get Install Subversion
Apt-get Install git-coreapt-get install php5apt-get install PHP5-GD
Apt-get Install Php-pear
Apt-get Install Php5-mysql
Apt-get Install Libmysqlclient-dev

wget http://www.unixodbc.org/unixODBC-2.3.2.tar.gz
wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-stable.tgz
wget pecl.php.net/get/pdo_mysql-1.0.2.tgz
wget pecl.php.net/get/pdo_odbc-1.0.1.tgz
git clone Https://github.com/nicolasff/phpredis

Phpize
./configure--prefix=/usr/local/unixodbc./configure--prefix=/usr/local/freetds--with-unixodbc=/usr/local/ unixodbc/--with-tdsver=7.0
./congigure--with-php-config=/usr/bin/php-config5--with-pdo-odbc=unixodbc,/usr/local/unixodbc (if error, Then try modifying the congigure to change the associated path)
Odbc.ini
[TEST1DSN]
Driver =/usr/local/freetds/lib/libtdsodbc.so
Description = First Test DSN
Trace = No
Servername = MyServer
Database = 51fanli
UID = Trace
Freetds.conf
[MyServer]
Host = mdb.zz.51fanli.it
Port = 1433
TDS Version = 7.0

Test
Redis-cli
/usr/local/unixodbc/bin/isql-v Test1dsn Trace Trace
/usr/local/freetds/bin/tsql-s myserver-u trace-p Trace

http://www.bkjia.com/PHPjc/738523.html www.bkjia.com true http://www.bkjia.com/PHPjc/738523.html techarticle apt-get install vimapt-get install SSH apt-get install apache2 apt-get install redis-server apt-get Install Subversion Apt-get Install git-coreapt-get install php5apt-get install ph ...

  • Related Article

    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.