Home > php教程 > php手册 > body text

在ubuntu下安装phpmyadmin 出现404错误

WBOY
Release: 2016-06-13 11:31:58
Original
1174 people have browsed it

在ubuntu下安转phpmyadmin 只要一条命令:

Sudo apt-get install phpmyadmin

安装完成后,在浏览器里输入http://localhost/phpmyadmin

出现404报错,这是因为没有将phpmyadmin目录映射到apache目录下;修改如下:

输入命令:

Sudo ln –s /usr/share/phpmyadmin /var/www

注意:/usr/share/phpmyadmin与/var/www 之间有空格。ln –s也有空格

在浏览器里输入http://localhost/phpmyadmin 就可以了。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template