cli-php Pgsql compiled version inconsistent, how to fix?

Source: Internet
Author: User
To run PHP in CLI mode, give a warning:

PHP warning:php Startup:pdo_pgsql:Unable to initialize module
Module compiled with module api=20100525
PHP compiled with module api=20121212
These options need to match
In Unknown on line 0
PHP warning:php Startup:pgsql:Unable to initialize module
Module compiled with module api=20100525
PHP compiled with module api=20121212
These options need to match
In Unknown on line 0

Look at the hint should be said Pgsql and PHP with the API version inconsistent, but Google long time, there is no good way to recompile pgsql. Who helps to see ha.

Reply content:

To run PHP in CLI mode, give a warning:

PHP warning:php Startup:pdo_pgsql:Unable to initialize module
Module compiled with module api=20100525
PHP compiled with module api=20121212
These options need to match
In Unknown on line 0
PHP warning:php Startup:pgsql:Unable to initialize module
Module compiled with module api=20100525
PHP compiled with module api=20121212
These options need to match
In Unknown on line 0

Look at the hint should be said Pgsql and PHP with the API version inconsistent, but Google long time, there is no good way to recompile pgsql. Who helps to see ha.

You first understand that the problem is the Php-pgsql module, not the Pgsql database.

Your module is using an older version of the PHP API, and PHP is already a new version of the API. That is, your PHP version and the version of the Php-pgsql module differ too much.

Where did you install PHP and where did you install the Php-pgsql? If it is Linux, it is recommended to install the relevant package from the software source, so that the version must be compatible.

  • 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.