简体   繁体   English

phpmyadmin本地主机错误

[英]phpmyadmin localhost error

I have install Apache, PHP, MySQL on MAC 10.8.1 and then I have installed the phpmyadmin by issuing the command in terminal - sudo apt-get install phpmyadmin . 我已经在MAC 10.8.1上安装了Apache,PHP,MySQL,然后通过在终端中发出命令安装了phpmyadmin - sudo apt-get install phpmyadmin

After this, in my web browser I type... localhost/phpmyadmin, it give the error message below. 此后,在我的Web浏览器中,键入... localhost / phpmyadmin,它显示以下错误消息。

Not found 未找到

The requested URL /phpmyadmin was not found on this server. 在此服务器上找不到请求的URL / phpmyadmin。 Apache/2.2.22 (Unix) mod_fastcgi/2.4.6 mod_ssl/2.2.22 Open SSL/0.9.8r DAV/2 PHP/5.3.13 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.2 Server at localhost Port 80 Apache / 2.2.22(Unix)mod_fastcgi / 2.4.6 mod_ssl / 2.2.22使用Suhosin-Patch mod_wsgi / 3.3 Python / 2.7.2服务器在本地主机端口80打开SSL / 0.9.8r DAV / 2 PHP / 5.3.13

How can I fix this problem? 我该如何解决这个问题?

Apache on unix is usually case sensitive, try /phpMyAdmin. Unix上的Apache通常区分大小写,请尝试/ phpMyAdmin。 If that doesn't work is the phpMyAdmin folder actually inside your servers document root? 如果这样不起作用,那么服务器文件根目录下的phpMyAdmin文件夹实际上是否在里面?

See if this article will resolve it for you. 看看本文是否会为您解决。 Yes I know it's for installing on Ubuntu, but it may work: 是的,我知道它是要在Ubuntu上安装的,但它可能会起作用:

https://help.ubuntu.com/community/phpMyAdmin https://help.ubuntu.com/community/phpMyAdmin

For MAC OS, it does not recognize localhost , please use 127.0.0.1 instead. 对于MAC OS,它不能识别localhost ,请改用127.0.0.1

In the browser, you should use http://127.0.0.1/phpmyadmin . 在浏览器中,您应该使用http://127.0.0.1/phpmyadmin

try to make an symbolic link between the directory of phpmyadmin and yours www 尝试在phpmyadmin目录和您的www之间建立符号链接

something like that : 像这样的东西:

sudo ln -s /usr/share/phpmyadmin/ /var/www/

and after that everything works :) 然后一切正常:)

if you changed your path to an other directory just change /var/www by /home/your/path/to/www 如果您将路径更改为其他目录,只需将/ var / www更改为/ home / your / path / to / www

For those of you still facing with this problem: 对于仍然面临此问题的人:

  • quickest fix: tell localhost which port to use. 最快的解决方法:告诉localhost使用哪个端口。

Check which port is Apache using (in my case it was 90) and replace: 检查Apache使用哪个端口(在我的情况下为90)并替换:

http://localhost/phpmyadmin http:// localhost / phpmyadmin

with

http://localhost:90/phpmyadmin http://本地主机:90 / phpmyadmin

Cheers! 干杯!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM