使用 Xampp 1.7.4 设置 Phppgadmin 5.0.2
我被要求在 PHP 和 PostgreSQL 中执行(第一次)任务,目的是安装 XAMPP 1.7.4、PostgreSQL 9.X,我不知道如何设置 phpPgadmin(5.0.2),所以我用 google 搜索并找到 此处配置说明; 这里
配置完所有这些后我发现以下内容当我尝试 https://localhost/phppgadmin 时出错
您的 PHP 安装不支持 PostgreSQL。需要重新编译PHP 使用 --with-pgsql 配置 选项。
我再次用谷歌搜索发现一些可能的原因,这些是
- 你没有重新启动aphace,
- 你更改的php.ini不是正确的php.ini文件,请确保从phpinfo()下的xampp控制台
我已经检查了两者,但仍然错误是没有根本改变。请有人帮助我,我已经花了一个多工作日了,谢谢
I was asked to perform(first time) a task in PHP with PostgreSQL for the purpose I intalled XAMPP 1.7.4, PostgreSQL 9.X, I was unaware how to setup phpPgadmin(5.0.2) so I googled and found Configuration Instruction here; and here
after configuring all this i found following error when i tried to https://localhost/phppgadmin
Your PHP installation does not support
PostgreSQL. You need to recompile PHP
using the --with-pgsql configure
option.
I googled again found some possible reasons those are
- you did't restarted aphace
- the php.ini you changed is not the right php.ini file, make it sure from xampp console under phpinfo()
I have checked both but still error is there no change at all. please someone help me, I already spent more than a business day, THANKs
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
正如我在那里回答的那样,将 php/libpq.dll 复制到 apache/bin 应该(希望)能够解决问题。
As I replied there, copying around php/libpq.dll into apache/bin should (hopefully) do the trick.
您是否取消注释了该行:
在
重新启动 Apache 之前和之后?
Did you uncomment the line:
in
and after that restart Apache?
我尝试了下面的文章并且成功了。
http://programmingmeetsmath.wordpress.com/2010/12/21/a-step-by-step-guide-of-installing-apache-php5-postgresql-windows/
I tried following article and it worked.
http://programmingmeetsmath.wordpress.com/2010/12/21/a-step-by-step-guide-of-installing-apache-php5-postgresql-windows/
您确定安装了 postgresql 模块吗?
只需执行
phpinfo();
即可找出安装了哪些模块。Are you sure you installed the postgresql module?
Just do a
phpinfo();
to find out which modules are installed.我面临着同样的问题。所有内容都未注释并显示在 phpinfo() 中
最后我转到 xampp:/php/ 目录并双击 php.exe 执行
命令提示符显示我的 php.ini 中的错误
我修复了一行中缺少的分号,一切顺利。希望它可以帮助某人
I was facing the same issue. Everything uncommented and displayed in phpinfo()
Finally I went to xampp:/php/ directory and double clicked php.exe to execute
And the command prompt showed the error in my php.ini
I fixed the missing semicolon in a line and everything went smooth. Hope it helps someone