使用 Xampp 1.7.4 设置 Phppgadmin 5.0.2

发布于 2024-11-01 19:31:18 字数 750 浏览 9 评论 0原文

我被要求在 PHP 和 PostgreSQL 中执行(第一次)任务,目的是安装 XAMPP 1.7.4、PostgreSQL 9.X,我不知道如何设置 phpPgadmin(5.0.2),所以我用 google 搜索并找到 此处配置说明这里

配置完所有这些后我发现以下内容当我尝试 https://localhost/phppgadmin 时出错

您的 PHP 安装不支持 PostgreSQL。需要重新编译PHP 使用 --with-pgsql 配置 选项。

我再次用谷歌搜索发现一些可能的原因,这些是

  1. 你没有重新启动aphace,
  2. 你更改的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

  1. you did't restarted aphace
  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

最笨的告白 2024-11-08 19:31:18

正如我在那里回答的那样,将 php/libpq.dll 复制到 apache/bin 应该(希望)能够解决问题。

As I replied there, copying around php/libpq.dll into apache/bin should (hopefully) do the trick.

夕嗳→ 2024-11-08 19:31:18

您是否取消注释了该行:

extension=php_pgsql.dll

C:\xampp\php\php.ini

重新启动 Apache 之前和之后?

Did you uncomment the line:

extension=php_pgsql.dll

in

C:\xampp\php\php.ini

and after that restart Apache?

汐鸠 2024-11-08 19:31:18

您确定安装了 postgresql 模块吗?

只需执行 phpinfo(); 即可找出安装了哪些模块。

Are you sure you installed the postgresql module?

Just do a phpinfo(); to find out which modules are installed.

何以心动 2024-11-08 19:31:18

我面临着同样的问题。所有内容都未注释并显示在 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文