Localhost or phpMyAdmin not found on server: How t

2019-06-25 12:37发布

I followed installation instruction for PHP, MySQL and PHPMyAdmin. But when I tried to access http://localhost/phpmyadmin/, I got this error:

"Not Found The requested URL /phpmyadmin/ was not found on this server.".

Then I tried to access just the localhost, still I got same error.
How can i fix this problem?

I'm using windows 7 (if this problem has something to do with that)

7条回答
倾城 Initia
2楼-- · 2019-06-25 12:42

If you are not able to access localhost :
One possible reason might be is your apache server is not started. Go to start menu of your computer and search services, open it, find Apache, start the program.(Considering all the configuration of PHP and Apache has done correctly)

If you are not able to access localhost/phpmyadmin : First of all, add phpmyadmin folder to your working directory. Download it from https://www.phpmyadmin.net and unzip it. Add the folder to your working directory and change the name to phpmyadmin. Now you can access localhost/phpmyadmin. You will see a login page of PhpMyAdmin application. If you are seeing file directories instead of the login page, then go to your apache server's httpd.conf(apache/conf/httpd.conf) file. Edit it and change the index.html of DirectoryIndex to index.php

<IfModule dir_module>
  DirectoryIndex index.php
</IfModule>
查看更多
Anthone
3楼-- · 2019-06-25 12:44

1 sudo nano /etc/apache2/apache2.conf

2 search insert: "Include /etc/phpmyadmin/apache.conf" at the bottom of file. and restart apache2

sudo /etc/init.d/apache2 restart

查看更多
forever°为你锁心
4楼-- · 2019-06-25 12:46

you just need to delete cookies from your browser

press (ctrl + shift + delete) then

time range to clear : Everything

check -> Cookies then clear now

done.

查看更多
爷的心禁止访问
5楼-- · 2019-06-25 12:53

Most likely it is the port conflict for apache server, by default is must be using port 80. You can goto apache configuration file, http.conf and change the port to a different one like: Listen 0.0.0.0:10021 This solved my issue. If using wamp, you can right click on wamp -> apache -> Use port other than 80, give a port number. Restart all wamp services.

查看更多
Anthone
6楼-- · 2019-06-25 12:57

I just finished installing xampp 1.8.2 on WinXP XP2 machine and got same error show up on my Firefox 24.0 browser:

xampp Not Found The requested URL /phpmyadmin/ was not found on this server.

I solved this problem by changing the proxy of my firefox browser, go to menu tools-Option find tab Network, click button settings. Fill the text box below No Proxy for with localhost.

In my case then it looklike:

192.168.1.0/24, localhost

Then press Ok, then Ok again.

Try now typing localhost/xampp then it should show Welcome to XAMPP for Windows!

Note: to change proxy for other browser may differ, check your browser help about how to change proxy.

Hope this help.

查看更多
SAY GOODBYE
7楼-- · 2019-06-25 13:01

There really isn't enough information to be able to give you a reasonable answer.

First check that your Apache is running. Goto your start menu and type services.msc into the text field.

Fairly high towards the top of the screen you will see ApacheX.X

See what the status of the service is. Try double-clicking on the Apache service and pressing Start if the service isn't running. If it has troubles starting you will get a message telling you the service couldn't be started.

查看更多
登录 后发表回答