XAMPP 添加 phpPgAdmin 别名后 Apache 无法启动

XAMPP Apache won't start after i added phpPgAdmin alias

我想在 Windows 上使用 XAMPP 安装 phpPgAdmin。完成所有步骤后,XAMPP 上的 Apache 模块将无法启动。我收到此错误日志

[Mon Nov 14 16:36:16.661538 2016] [ssl:warn] [pid 10612:tid 504] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 14 16:36:16.824335 2016] [core:warn] [pid 10612:tid 504] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Nov 14 16:36:16.924133 2016] [ssl:warn] [pid 10612:tid 504] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 14 16:36:17.724645 2016] [mpm_winnt:notice] [pid 10612:tid 504] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/7.0.9 configured -- resuming normal operations
[Mon Nov 14 16:36:17.724645 2016] [mpm_winnt:notice] [pid 10612:tid 504] AH00456: Apache Lounge VC14 Server built: Jul  1 2016 11:09:37
[Mon Nov 14 16:36:17.724645 2016] [core:notice] [pid 10612:tid 504] AH00094: Command line: 'c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache'
[Mon Nov 14 16:36:17.724645 2016] [mpm_winnt:notice] [pid 10612:tid 504] AH00418: Parent: Created child process 7288
[Mon Nov 14 16:36:18.611254 2016] [ssl:warn] [pid 7288:tid 584] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 14 16:36:18.796715 2016] [ssl:warn] [pid 7288:tid 584] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 14 16:36:18.850157 2016] [mpm_winnt:notice] [pid 7288:tid 584] AH00354: Child: Starting 150 worker threads.
[Mon Nov 14 16:36:22.814454 2016] [mpm_winnt:crit] [pid 7288:tid 584] AH02538: Child: Parent process exited abruptly. Child process is ending

我试图从 httpd-xamp.conf 中删除 phpPgAdmin 别名,它再次起作用,但我的 phpPgAdmin 将不起作用(很明显)。 我在 php.ini

处取消了对 php_pgsql.dll 和 php_pdo_pgsql.dll 扩展的注释
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll

这是我在 config.inc.php 上来自 phpPgAdmin 文件夹

的配置
$conf['servers'][0]['host'] = 'localhost';
$conf['servers'][0]['pg_dump_path'] = 'C:\xampp\pgsql.3\bin\pg_dump.exe';
$conf['servers'][0]['pg_dumpall_path'] = 'C:\xampp\pgsql.3\bin\pg_dumpall.exe';
$conf['extra_login_security'] = false;

这是我在 httpd-xampp.conf

上的别名配置
Alias /phppgadmin “C:/xampp/phpPgAdmin/”
<Directory “C:/xampp/phpPgAdmin”>
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>

我是 XAMPP 和 PHP 的新手,所以我不知道问题出在哪里。有人可以帮忙吗?

我不知道我的回答是否太晚了,但你只需要将路径中的花括号 “” 更改为常规花括号 "",就像这样

"C:/xampp/phppgadmin/"