Get the App
SLTechnology News&Howtos  ›  Development  › 

How php installs pgsql extensions

Shulou Source: shulou.com Published: 2022-06-03 15:48:44 11月14日 Update

Editor to share with you how to install php pgsql extension, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

1. Go to the ext directory and go to pgsql.

2. Find phpize and execute the. / configure command.

3. Execute make install command.

Example

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

If all goes well, you will find / usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/ there will be two more pdo_pgsql.so and pgsql.so here.

In the Apache:php configuration file, remove the previous ones related to pgsql, and | restart Apache | phpinfo (); at this time, it is found that it has been extended.

In the Nginx:php configuration file, add extengsions= "pgsql.so", | restart Nginx | phpinfo (); at this time, it is found that it has been extended.

These are all the contents of the article "how to install pgsql extensions in php". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Articles content commands files configuration not much two locations most examples more directories knowledge industry information information channels channels references learning help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi MySQL macOS Shulou Technology Shulou Tech Info