我想在Windows上安装phpPgAdmin与XAMPP。完成所有步骤后,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
这是我在phpPgAdmin文件夹下的config.inc.php的配置
$conf['servers'][0]['host'] = 'localhost';
$conf['servers'][0]['pg_dump_path'] = 'C:xampppgsql9.3binpg_dump.exe';
$conf['servers'][0]['pg_dumpall_path'] = 'C:xampppgsql9.3binpg_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/"