【问题标题】:Integrating phpPgAdmin to XAMPP throws errors将 phpPgAdmin 集成到 XAMPP 会引发错误
【发布时间】:2019-02-24 14:28:51
【问题描述】:

我用 Xampp 7.2.1 安装了 Postgre。 Postgre 数据库。数据库工作得很好,但我无法让 phpPgAdmin 工作。 我从这里下载了 phpPgAdmin: https://sourceforge.net/projects/phppgadmin/ 我按照该网站的说明进行操作: http://subhra.me/install-postgresql-in-xampp-on-windows-and-integrate-phppgadmin/

我尝试了以下方法来让 phpPgAdmin 工作:

1.我将下载的 phppgadmin ZIP 解压到我的 Xampp 文件夹中: C:\xampp\phppgadmin 2.我打开了C:\xampp\phpPgAdmin\conf\下的config.inc.php,并编辑了如下文件:

$conf['servers'][0]['host'] = 'localhost';
$conf['servers'][0]['pg_dump_path'] = 'C:\\xampp\\PostgreSQL\\9.5\\bin\\pg_dump.exe';
$conf['servers'][0]['pg_dumpall_path'] = 'C:\\xampp\PostgreSQL\\9.5\\bin\\pg_dumpall.exe';
$conf['extra_login_security'] = false;

3.然后我打开 c:\xampp\apache\conf\extra\httpd-xampp.conf 中的 httpd-xampp.conf 并执行以下操作:

Alias /phppgadmin "C:/xampp/phppgadmin/"
<directory "C:/xampp/phppgadmin">
AllowOverride AuthConfig
Require all granted
</directory>

现在我收到此错误消息:

不推荐使用:与其类同名的方法将不会被 PHP 未来版本中的构造函数;杂项已弃用 第 8 行 C:\xampp\phppgadmin\classes\Misc.php 中的构造函数。

  1. {main}() C:\xampp\phppgadmin\index.php:0
  2. include_once() C:\xampp\phppgadmin\index.php:11

警告:session_name():当标头时无法更改会话名称 已在第 55 行的 C:\xampp\phppgadmin\libraries\lib.inc.php 中发送

  1. {main}() C:\xampp\phppgadmin\index.php:0
  2. include_once() C:\xampp\phppgadmin\index.php:11
  3. session_name() C:\xampp\phppgadmin\libraries\lib.inc.php:55

警告:session_start():当标头已经存在时无法启动会话 在第 56 行的 C:\xampp\phppgadmin\libraries\lib.inc.php 中发送

  1. {main}() C:\xampp\phppgadmin\index.php:0
  2. include_once() C:\xampp\phppgadmin\index.php:11
  3. session_start() C:\xampp\phppgadmin\libraries\lib.inc.php:56

警告:无法修改标头信息 - 标头已由 (输出开始于 C:\xampp\phppgadmin\classes\Misc.php:8) C:\xampp\phppgadmin\classes\Misc.php 在第 526 行

  1. {main}() C:\xampp\phppgadmin\index.php:0
  2. 杂项->printHeader() C:\xampp\phppgadmin\index.php:12
  3. header() C:\xampp\phppgadmin\classes\Misc.php:526

在此先感谢您的帮助和感谢

【问题讨论】:

    标签: php postgresql xampp phppgadmin


    【解决方案1】:

    正如您在https://sourceforge.net/projects/phppgadmin/ 看到的,最新的更新是在五年多前对 phpPgAdmin 进行的,因此它尚未与最新的 PHP 版本兼容。他们的bugtracker 列出了您的问题。

    https://github.com/ReimuHakurei/phppgadmin 有一个分支,声称已修复这些问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-14
      • 1970-01-01
      • 2011-08-06
      • 2016-11-23
      • 2016-08-14
      • 2016-08-28
      • 2016-05-30
      • 1970-01-01
      相关资源
      最近更新 更多