在Windows上配置PHP和PostgreSQL [英] Configure PHP and PostgreSQL on Windows

查看:189
本文介绍了在Windows上配置PHP和PostgreSQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在手动安装PHP,Apache和PostgreSQL

I'm installing PHP, Apache and PostgreSQL Manually

PHP和Apache现在已连接,但PostgreSQL未连接到PHP。

PHP and Apache now is connected, but PostgreSQL is not connected to PHP.

i通过使用phpinfo()进行测试;

i test by using phpinfo();

我也在php.ini中进行如下配置:

i also configure in php.ini like this :

extension=php_pgsql.dll
extension=php_pdo_pgsql.dll

但是为什么它不起作用。

But why it's not work.

谢谢

推荐答案

本教程适用于我:


PHP扩展将查找 libpq.dll 您的
PostgreSQL安装。简单的解决方法是将比
包含该文件的路径添加到您的环境PATH。

The PHP extension will look for libpq.dll which is found of your PostgreSQL installation. The simple fix is to add the path than contains that file to your environment PATH.

这篇关于在Windows上配置PHP和PostgreSQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆