如何在Ubuntu上安装phpMyAdmin 4.7.7? [英] How to install phpMyAdmin 4.7.7 on Ubuntu?

查看:92
本文介绍了如何在Ubuntu上安装phpMyAdmin 4.7.7?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要最新版本,而不是这里.我阅读了手册和其他主题,但是所有内容都一直指向这个旧版本.我需要最新版本的原因是,旧版本无法在PHP 7.2上正常运行,如所述

I need the latest version, not the 4.6.6 that is available at here. I read the manual and other threads, but everything keeps pointing back to this older version. The reason I need the latest is that the old version doesn't work well on PHP 7.2, as mentioned here.

仅通过从此处下载最新版本来手动"进行安装/升级是不可能的?存档的内容看起来与我从"phpMyAdmin PPA"获得的内容相似.我不能只是手动覆盖文件系统中的某些文件以将我的版本升级到最新版本吗?如果我在Ubuntu下解压缩了存档,是否有一个命令可以开始安装?

Isn't it possible to "manually" do an install/upgrade just by downloading the latest version from here? The contents of the archive look similar to what I get from the "phpMyAdmin PPA". Can't I just overwrite some files manually in the file system to upgrade my version to the latest? Is there a command that starts the installation, if I have the archive unpacked under Ubuntu?

推荐答案

标识Apache的DocumentRoot

Identify Apache’s DocumentRoot

 $ grep DocumentRoot /etc/apache2/sites-available/000-default.conf
 DocumentRoot /var/www/html

下载最新版本的phpMyAdmin

Download Latest Version of phpMyAdmin

 $ cd /var/www/html
 $ sudo wget https://files.phpmyadmin.net/phpMyAdmin/4.7.7/phpMyAdmin-4.7.7-english.tar.gz
 $ ls
 index.html phpMyAdmin-4.7.7-english.tar.gz

提取文件

 sudo tar xvzf phpMyAdmin-4.7.7-english.tar.gz

重命名文件夹

 sudo mv phpMyAdmin-4.7.7-english phpmyadmin

删除文件

 sudo rm phpMyAdmin-4.7.7-english.tar.gz

保护/phpmyadmin目录

Secure /phpmyadmin Directory

 $ sudo adduser phpmyadmin
 Adding user `phpmyadmin' ...
 Adding new group `phpmyadmin' (1001) ...
 Adding new user `phpmyadmin' (1001) with group `phpmyadmin' ...
 Creating home directory `/home/phpmyadmin' ...
 Copying files from `/etc/skel' ...
 Enter new UNIX password:
 Retype new UNIX password:
 passwd: password updated successfully


 sudo chown -R phpmyadmin.phpmyadmin /var/www/html/phpmyadmin

使用安装向导更新phpMyAdmin config.inc

Update phpMyAdmin config.inc With Install Wizard

 $ cd /var/www/html/phpmyadmin
 sudo mkdir config
 sudo chmod o+rw config
 sudo cp config.sample.inc.php config/config.inc.php
 sudo chmod o+w config/config.inc.php

在AWS Cloud9上:

On AWS Cloud9:

 cd -
 sudo mv phpmyadmin ~/workspace/phpmyadmin

运行phpMyAdmin安装向导

Run phpMyAdmin Install Wizard

 http://example.com/phpmyadmin/setup/index.php

如果您在本地主机工作

 http://127.0.0.1/phpmyadmin/setup/index.php

在服务器"部分下,单击新服务器".

Under the "Servers" section, click on "New Server."

在身份验证"标签下的配置身份验证密码"框中键入您的MySQL根密码,然后单击应用".

Under the "Authentication" tab, type in your MySQL root password in the "Password for Config Auth" box and then click "Apply."

为了安全起见,删除phpMyAdmin/config目录.

Remove the phpMyAdmin /config directory for security.

 sudo rm -rf /var/www/html/phpmyadmin/config

来源: http://www.hostingadvice.com/how-to/install-phpmyadmin-on-ubuntu/

这篇关于如何在Ubuntu上安装phpMyAdmin 4.7.7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆