Configuring PHP and PostgreSQL under Ubutun

Source: Internet
Author: User
Tags php compiler phpinfo postgresql

After the installation is complete, check the PHP extension.

php -m | grep pdo_pgsql

Php-m and phpinfo should be different profiles that you can see in php-m, stating that you only loaded this in the Php-i|grup php.ini configuration file. So this file, you still have to be in phpinfo (). This mode below see his loaded configuration file location, and then also Add. so file, after the addition, restart the service, the perfect solution, I used to engage in swoole expansion has also met

If you want to change MySQL to PostgreSQL, then you have to let pgsql expand.

PHP, which can be appended using the Phpize tool.

PHP compiler directory under the ext/ 2, according to PHP/bin/phpize;

Install PostgreSQL database;

php-config=/usr/local/php-config

5. Make && make install

php configuration file php-7.0.4/etc/pgsql . So module.

php-7.0.4/lib/ extension=pdo _ restart pgsql module.

PDO_pgsqland pgsql. So location in/usr/local/php/extensions/ no-debug-non-zts-20151012

Configuring PHP and PostgreSQL under Ubutun

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.