首页 > 代码库 > The requested URL /phpmyadmin was not found on this server.

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

这个报错,我弄了好久,第一次我以为我安装有问题,我就卸载重新安装了,但是在结果还是报这样子的错。

查找phpmyadmin的安装位置输入:

sudo dpkg -L phpmyadmin

可以看到很多

/usr/share/phpmyadmin/setup/frames/servers.inc.php
/usr/share/phpmyadmin/setup/frames/menu.inc.php
/usr/share/phpmyadmin/setup/frames/index.inc.php
/usr/share/phpmyadmin/setup/frames/form.inc.php
/usr/share/phpmyadmin/setup/frames/config.inc.php
/usr/share/phpmyadmin/setup/frames/.htaccess
/usr/share/phpmyadmin/setup/index.php
/usr/share/phpmyadmin/setup/styles.css
/usr/share/phpmyadmin/setup/config.php
/usr/share/phpmyadmin/setup/validate.php
/usr/share/dbconfig-common

这样子我们就很容易看的出来,phpmyadmin安装在哪里。

然后解决办法就是,把phpmyadmin这个文件直接copy到/var/www/目录下。就OK 啦!

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