【发布时间】: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 中的构造函数。
- {main}() C:\xampp\phppgadmin\index.php:0
- include_once() C:\xampp\phppgadmin\index.php:11
警告:session_name():当标头时无法更改会话名称 已在第 55 行的 C:\xampp\phppgadmin\libraries\lib.inc.php 中发送
- {main}() C:\xampp\phppgadmin\index.php:0
- include_once() C:\xampp\phppgadmin\index.php:11
- session_name() C:\xampp\phppgadmin\libraries\lib.inc.php:55
警告:session_start():当标头已经存在时无法启动会话 在第 56 行的 C:\xampp\phppgadmin\libraries\lib.inc.php 中发送
- {main}() C:\xampp\phppgadmin\index.php:0
- include_once() C:\xampp\phppgadmin\index.php:11
- session_start() C:\xampp\phppgadmin\libraries\lib.inc.php:56
警告:无法修改标头信息 - 标头已由 (输出开始于 C:\xampp\phppgadmin\classes\Misc.php:8) C:\xampp\phppgadmin\classes\Misc.php 在第 526 行
- {main}() C:\xampp\phppgadmin\index.php:0
- 杂项->printHeader() C:\xampp\phppgadmin\index.php:12
- header() C:\xampp\phppgadmin\classes\Misc.php:526
在此先感谢您的帮助和感谢
【问题讨论】:
标签: php postgresql xampp phppgadmin