php 安装wamp后无法加载phpmyadmin

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10782456/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 23:03:18  来源:igfitidea点击:

can't load phpmyadmin after installing wamp

phpmysqlapachewampserver

提问by zaw

I am trying to install latest version of wamp server 2.2 on my local machine. I had IIS running on port 80 so I installed wamp on port 8080, everything is working fine except phpmyadmin which just givnig me blank page with 'connection was timed out'or 'page cannot be displayed message, I have tried disabling IIS but nothing changed. I also tested the php and mysql connection both are working fine and other alias sqlbuddy and webgrind are also working.. I've also tested xampp as well but having the same problem with wamp? any help would be appreciated thanks.

我正在尝试在本地计算机上安装最新版本的 wamp server 2.2。我在端口 80 上运行了 IIS,所以我在端口 8080 上安装了 wamp,除了 phpmyadmin 之外,一切正常. 我还测试了 php 和 mysql 连接都工作正常,其他别名 sqlbuddy 和 webgrind 也可以正常工作。任何帮助将不胜感激谢谢。

Here is the apache error log update everytime I access phpmyadmin...

这是我每次访问 phpmyadmin 时的 apache 错误日志更新...

[Mon Jun 04 16:15:16.701238 2012] [mpm_winnt:notice] [pid 1852:tid 392] AH00428: Parent: child process exited with status 255 -- Restarting.
[Mon Jun 04 16:15:16.763242 2012] [mpm_winnt:notice] [pid 1852:tid 392] AH00455: Apache/2.4.2 (Win64) PHP/5.4.3 configured -- resuming normal operations
[Mon Jun 04 16:15:16.763242 2012] [mpm_winnt:notice] [pid 1852:tid 392] AH00456: Server built: May 13 2012 19:54:49
[Mon Jun 04 16:15:16.763242 2012] [core:notice] [pid 1852:tid 392] AH00094: Command line: 'c:\wamp\bin\apache\apache2.4.2\bin\httpd.exe -d C:/wamp/bin/apache/apache2.4.2'
[Mon Jun 04 16:15:16.764242 2012] [mpm_winnt:notice] [pid 1852:tid 392] AH00418: Parent: Created child process 476
[Mon Jun 04 16:15:17.190266 2012] [mpm_winnt:notice] [pid 476:tid 288] AH00354: Child: Starting 64 worker threads.

回答by Robbie

You can change through the WAMP settings

您可以通过 WAMP 设置进行更改

  1. Go to your wamp folder and edit wampmanager.tpl
  2. Find the phpmyadmin reference (localhost/phpmyadmin) and add port 8080 (localhost:8080/phpmyadmin/)
  3. Restart wamp
  1. 转到您的 wamp 文件夹并编辑 wampmanager.tpl
  2. 找到 phpmyadmin 引用 (localhost/phpmyadmin) 并添加端口 8080 (localhost:8080/phpmyadmin/)
  3. 重启wamp

(This assumes that the rest of WAMP is already listening on port 8080 - otherwise you need to add a listerner on that port in httpd.conf as well, plus change other references in wampmanager.tpl . But as you say that's working I assume you'rve already done that)

(这假设 WAMP 的其余部分已经在侦听端口 8080 - 否则您还需要在 httpd.conf 中的该端口上添加一个侦听器,并更改 wampmanager.tpl 中的其他引用。但是正如您所说的那样,我假设您'已经这样做了)

回答by Aaron McKeehan

This seems to have been answered, but a simple method that worked for me, on Windows 7. Was to simply right click on the WAMP icon, select tools, find "Port Used by Apache2", test port 80, and if that comes up with a, "already used by X application" then select the "Use another Port other than 80" option.

这似乎已经得到了回答,但是在 Windows 7 上对我有用的简单方法是只需右键单击 WAMP 图标,选择工具,找到“Apache2 使用的端口”,测试端口 80,如果出现使用“已被 X 应用程序使用”,然后选择“使用 80 以外的其他端口”选项。

I selected 8080 and it works fine.

我选择了 8080,它工作正常。

You can then use: http://localhost:8080/phpmyadmin/to access phpMyAdmin.

然后您可以使用:http://localhost:8080/phpmyadmin/来访问 phpMyAdmin。

If 8080 doesn't work, then check to see what application may be using it, and exit that app, or just try another port.

如果 8080 不起作用,请检查可能正在使用它的应用程序,然后退出该应用程序,或者尝试另一个端口。

What Port 80 comes up with if it's already usedI guess exiting IIS would make sense

如果 80 端口已经被使用,它会提供什么我想退出 IIS 是有意义的

This is what it should look likeenter image description here

这就是它的样子在此处输入图片说明

This setup works for me, so I hope it helps!

这个设置对我有用,所以我希望它有帮助!

回答by Luqman

Steps for phpmyadmin:

phpmyadmin 的步骤:

  1. type in browser: localhost:3306/phpmyadmin
  2. it will open a line ( i did not understand what that line means :-) )
  3. now dont close your browser and type : localhost/phpmyadmin
  4. then it will work.
  1. 在浏览器中输入:localhost:3306/phpmyadmin
  2. 它会打开一条线(我不明白那条线是什么意思:-))
  3. 现在不要关闭浏览器并输入:localhost/phpmyadmin
  4. 那么它会起作用。

I do the same

我也一样

回答by wasim

I changed both "wampmanager.ini"and "wampmanager.tpl"using steps mentioned by Robbieand it's working fine on port 8080. (If you still see Access denied error, make sure to clear browser cache and refresh browser page.)

我使用Robbie提到的步骤更改了“wampmanager.ini”“wampmanager.tpl”,它在端口 8080 上工作正常。(如果您仍然看到拒绝访问错误,请确保清除浏览器缓存并刷新浏览器页面。)