How php installs pgsql extensions
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!