PHP7 Installing Pdo_pgsql,pgsql Extensions

Source: Internet
Author: User
Tags phpinfo

Download PDO expansion pack via address Http://pecl.php.net/package/PDO_PGSQL

Find the Pgsql library in the Ext directory that comes with PHP

Step two: switch directories to Pgsql

Step three: Find Phpizewhereis phpize

Fourth step: The following code:

#/usr/bin/phpize#./configure--with-php-config=/usr/bin/php-config Find php-config location # make && make install

If it works together, you'll find /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/ two more pdo_pgsql.so and pgsql.so .

apache:php in the configuration file, remove the Pgsql related front ; , |  Restart Apache | phpinfo();that's when the discovery expands.

nginx:php configuration file, add extengsions= "pgsql.so", |  Restart Nginx | phpinfo();that's when the discovery expands.

Note:
In the PHP7, download the official website pecl in the pgsql of the last 2006 years of the package is not , find PHP installed after the Ext Pgsql library, do not download

PHP7 Installing Pdo_pgsql,pgsql Extensions

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.