ubuntu之使用phpmyadmin

本文介绍如何在Linux环境下配置phpMyAdmin,解决安装后出现的404 Not Found错误。通过创建软链接的方式将phpMyAdmin目录指向web服务器的文档根目录。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

(Linux+Apache+MySQL+PHP) structure on my Ubuntu machine. Installing the structure is pretty easy. But getting it all running seamlessly is the another thing. After installing the things I typed http://127.0.0.1 (http://localhost/) on my Browser and it said “It Works”. But when I tried to open the phpmyadmin (http://localhost/phpmyadmin/) which is used to manage your MySQL backend and tables it shows the 404 Not Found error.

By Default your www directory is created here /var/www and the phpmyadmin configuration files are stored in /usr/share/phpmyadmin. So the trick involved here is to point your the later location or directory from your former directory. To do this open your terminal and run the following command.phpmyadmin_ununtu

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

This will create the pointer to /usr/share/phpmyadmin in /var/www

Now open the http://localhost/phpmyadmin/ and you are good to go. If you still face any problems feel free to ask and comment.

 

注意:ln 大意是链接,和c++中到指针意思一样

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值