简体   繁体   English

无法在Ubuntu 14.04中安装phpmyadmin

[英]Unable to install phpmyadmin in ubuntu 14.04

I'm following this link: click here! 我正在跟踪此链接: 单击此处!
I ran 我跑了

sudo apt-get update && sudo apt-get install phpmyadmin

Then I restarted apache2 by using this command: 然后,我使用以下命令重新启动了apache2:

sudo service apache2 restart  

Then I went to http://localhost/phpmyadmin in browser and I got this error: 然后,我在浏览器中转到http:// localhost / phpmyadmin ,并出现以下错误:

Not Found

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

Where did things go wrong? 哪里出问题了?
PS: This is the 3rd time that I'm trying to install phpmyadmin . PS:这是我第三次尝试安装phpmyadmin

Look at this: http://tecadmin.net/install-phpmyadmin-in-ubuntu/ 看看这个: http : //tecadmin.net/install-phpmyadmin-in-ubuntu/

You have to edit your conf file 您必须编辑conf文件

You must have a LAMP server in order to work with phpmyadmin. 您必须具有LAMP服务器才能使用phpmyadmin。

In your case, I think you haven't installed MySQL. 就您而言,我认为您尚未安装MySQL。

You can install the entire LAMP by the following command. 您可以通过以下命令安装整个LAMP。

sudo apt-get install lamp-server^

It's important to remember the caret (^) at the end of the command. 重要的是要记住命令末尾的插入符号(^)。

During the installation, MySQL will ask you to set a root password. 在安装过程中,MySQL将要求您设置root密码。

Step by step installation of LAMP server is described in this link . 在此链接中描述了LAMP服务器的逐步安装。

As you have already installed phpmyadmin, you now need to configure apache. 由于已经安装了phpmyadmin,因此现在需要配置apache。

sudo nano /etc/apache2/apache2.conf

Add the following to the bottom of the file: 将以下内容添加到文件的底部:

# phpMyAdmin Configuration
Include /etc/phpmyadmin/apache.conf

Restart apache with the following command. 使用以下命令重新启动apache。

sudo service apache2 restart

Now phpmysql will be working in http://localhost/phpmyadmin/ . 现在phpmysql将在http:// localhost / phpmyadmin /中运行

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

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