From f5cc73c3f3cfc9da0f4e89e8da4470aa31792874 Mon Sep 17 00:00:00 2001 From: ZTinoZ Date: Wed, 26 Nov 2014 10:40:16 +0800 Subject: [PATCH 1/5] Translating by ZTinoZ --- ...Qs with Answers--How to install phpMyAdmin on CentOS.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md b/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md index e655c257e8..6ab8891ccf 100644 --- a/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md +++ b/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md @@ -1,7 +1,6 @@ -Translating by ZTinoZ -Linux FAQs with Answers--How to install phpMyAdmin on CentOS +Linux问答时间--如何在CentOS上安装phpMyAdmin ================================================================================ -> **Question**: I am running a MySQL/MariaDB server on CentOS, and I would like to manage its databases via web-based interface using phpMyAdmin. What is a proper way to install phpMyAdmin on CentOS? +> **问题**:我正在CentOS上运行一个MySQL/MariaDB服务,并且我想要通过网络接口来用phpMyAdmin来管理数据库。在CentOS上安装phpMyAdmin的最佳方法是什么? phpMyAdmin is an open-source PHP application designed as a web-based MySQL/MariaDB database administration tool. While there exist lightweight database management tools such as [Adminer][1], phpMyAdmin is more popularly used among webmasters to conduct various MySQL/MariaDB administration tasks. It supports pretty much all MySQL database/table related operations such as browse, create, copy, drop, rename, alter, as well as MySQL user/privilege management, and database import/export. Here is **how to install phpMyAdmin on CentOS 6 or 7**. @@ -153,7 +152,7 @@ and restart httpd: via: http://ask.xmodulo.com/install-phpmyadmin-centos.html -译者:[译者ID](https://github.com/译者ID) +译者:[ZTinoZ](https://github.com/ZTinoZ) 校对:[校对者ID](https://github.com/校对者ID) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 From b6b6d65891534befa4180054ee82720b065ca022 Mon Sep 17 00:00:00 2001 From: ZTinoZ Date: Wed, 26 Nov 2014 17:39:50 +0800 Subject: [PATCH 2/5] Translating by ZTinoZ --- ... FAQs with Answers--How to install phpMyAdmin on CentOS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md b/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md index 6ab8891ccf..500172f5ab 100644 --- a/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md +++ b/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md @@ -2,9 +2,9 @@ Linux问答时间--如何在CentOS上安装phpMyAdmin ================================================================================ > **问题**:我正在CentOS上运行一个MySQL/MariaDB服务,并且我想要通过网络接口来用phpMyAdmin来管理数据库。在CentOS上安装phpMyAdmin的最佳方法是什么? -phpMyAdmin is an open-source PHP application designed as a web-based MySQL/MariaDB database administration tool. While there exist lightweight database management tools such as [Adminer][1], phpMyAdmin is more popularly used among webmasters to conduct various MySQL/MariaDB administration tasks. It supports pretty much all MySQL database/table related operations such as browse, create, copy, drop, rename, alter, as well as MySQL user/privilege management, and database import/export. Here is **how to install phpMyAdmin on CentOS 6 or 7**. +phpMyAdmin是一款以PHP为基础,基于Web的MySQL/MariaDB数据库管理工具。虽然已经存在着一些诸如[Adminer][1]的轻量级数据库管理工具, 但是phpMyAdmin还是更加广泛应用于网站管理员之中来进行各种MySQL/MariaDB的管理任务。它支持几乎所有MySQL数据库/表的相关操作,比如浏览、创建、复制、删除、重命名、更改,还有MySQL用户/权限管理和数据库导入/导出。以下就是**如何在CentOS6或7上安装phpMyAdmin**。 -### Prerequisites ### +### 前提 ### To install phpMyAdmin on CentOS, you first need to set up a web server (e.g., Apache or nginx), MySQL/MariaDB and PHP. Depending on your preference or requirement, you can choose to install either [LAMP stack][2] or [LEMP stack][3]. From ea9fa87ebf012b610aae9406b4bd28a5afbe7316 Mon Sep 17 00:00:00 2001 From: ZTinoZ Date: Thu, 27 Nov 2014 18:01:21 +0800 Subject: [PATCH 3/5] Translating by ZTinoZ --- ...rs--How to install phpMyAdmin on CentOS.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md b/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md index 500172f5ab..a41056f2b7 100644 --- a/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md +++ b/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md @@ -2,31 +2,31 @@ Linux问答时间--如何在CentOS上安装phpMyAdmin ================================================================================ > **问题**:我正在CentOS上运行一个MySQL/MariaDB服务,并且我想要通过网络接口来用phpMyAdmin来管理数据库。在CentOS上安装phpMyAdmin的最佳方法是什么? -phpMyAdmin是一款以PHP为基础,基于Web的MySQL/MariaDB数据库管理工具。虽然已经存在着一些诸如[Adminer][1]的轻量级数据库管理工具, 但是phpMyAdmin还是更加广泛应用于网站管理员之中来进行各种MySQL/MariaDB的管理任务。它支持几乎所有MySQL数据库/表的相关操作,比如浏览、创建、复制、删除、重命名、更改,还有MySQL用户/权限管理和数据库导入/导出。以下就是**如何在CentOS6或7上安装phpMyAdmin**。 +phpMyAdmin是一款以PHP为基础,基于Web的MySQL/MariaDB数据库管理工具。虽然已经存在着一些诸如[Adminer][1]的轻量级数据库管理工具, 但是phpMyAdmin还是更加广泛应用于网站管理员之中来进行各种MySQL/MariaDB的管理任务。它支持几乎所有MySQL数据库/表的相关操作,比如浏览、创建、复制、删除、重命名、更改,还有MySQL用户/权限管理和数据库导入/导出。以下就是**如何在CentOS 6或7上安装phpMyAdmin**。 ### 前提 ### -To install phpMyAdmin on CentOS, you first need to set up a web server (e.g., Apache or nginx), MySQL/MariaDB and PHP. Depending on your preference or requirement, you can choose to install either [LAMP stack][2] or [LEMP stack][3]. +在CentOS上安装phpMyAdmin,你第一步需要架设一台Web服务器(如Apache或nginx),安装好MySQL/MariaDB数据库和PHP。根据你的偏好和需求,你可以从[LAMP][2]和[LEMP][3]中选择一种安装。 -Another requirement is to enable EPEL repository on your CentOS. Follow [this guide][4] to set up EPEL repository if you haven't done so. +另一个要求是允许在你的CentOS上安装EPEL库。如果你还没设置过请[猛戳这里][4]。 -### Install phpMyAdmin on CentOS 6 or 7 ### +### 在CentOS6或7上安装phpMyAdmin ### -Once you set up EPEL repository, you can install phpMyAdmin easily with yum command as follows. +一旦你设置了EPEL库,你就能轻松地用以下命令安装phpMyAdmin了。 -On CentOS 7: +在CentOS 7上: $ sudo yum install phpmyadmin -On CentOS 6: +在CentOS 7上: $ sudo yum install phpmyadmin php-mcrypt -### Configure phpMyAdmin on CentOS 7 ### +### 在CentOS 7上配置phpMyAdmin ### -By default, phpMyAdmin on CentOS 7 allows access only from loopback address (127.0.0.1). To enable remote access, you will need to update its configuration. +默认情况下,CentOS 7上的phpMyAdmin只允许从回环地址(127.0.0.1)访问。为了能远程连接,你需要改动以下配置。 -Open phpMyAdmin's configuration (/etc/httpd/conf.d/phpMyAdmin.conf) with a text editor. Find and comment out every line that says "Require ip XXXX". There will be four such lines. Add "Require all granted" instead. The updated configuration file will look like the following. +用编辑器打开phpMyAdmin的配置文件(路径:/etc/httpd/conf.d/phpMyAdmin.conf)。Find and comment out every line that says "Require ip XXXX". There will be four such lines. Add "Require all granted" instead. The updated configuration file will look like the following. $ sudo vi /etc/httpd/conf.d/phpMyAdmin.conf From 04ed0501ac3e430a60c091ef0e7196fccd6bbe16 Mon Sep 17 00:00:00 2001 From: ZTinoZ Date: Fri, 28 Nov 2014 17:35:37 +0800 Subject: [PATCH 4/5] Translating by ZTinoZ --- ...rs--How to install phpMyAdmin on CentOS.md | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md b/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md index a41056f2b7..481f4757c6 100644 --- a/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md +++ b/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md @@ -24,9 +24,9 @@ phpMyAdmin是一款以PHP为基础,基于Web的MySQL/MariaDB数据库管理工 ### 在CentOS 7上配置phpMyAdmin ### -默认情况下,CentOS 7上的phpMyAdmin只允许从回环地址(127.0.0.1)访问。为了能远程连接,你需要改动以下配置。 +默认情况下,CentOS 7上的phpMyAdmin只允许从回环地址(127.0.0.1)访问。为了能远程连接,你需要改动它的配置。 -用编辑器打开phpMyAdmin的配置文件(路径:/etc/httpd/conf.d/phpMyAdmin.conf)。Find and comment out every line that says "Require ip XXXX". There will be four such lines. Add "Require all granted" instead. The updated configuration file will look like the following. +用文本编辑器打开phpMyAdmin的配置文件(路径:/etc/httpd/conf.d/phpMyAdmin.conf),找出并注释掉带有"Require ip XXXX"字样的代码行。会有四处这样的代码行,用"Require all granted"取而代之。重新改动过的配置文件如下所示。 $ sudo vi /etc/httpd/conf.d/phpMyAdmin.conf @@ -72,15 +72,15 @@ phpMyAdmin是一款以PHP为基础,基于Web的MySQL/MariaDB数据库管理工 . . . . . -Finally, restart httpd to activate the change. +最后,重启httpd使改动生效。 $ sudo systemctl restart httpd -### Configure phpMyAdmin on CentOS 6 ### +### 在CentOS 6上配置phpMyAdmin ### -By default, phpMyAdmin on CentOS 6 blocks access from every IP address. To enable remote access, you will need to update its configuration. +默认情况下,CentOS 6上的phpMyAdmin是禁止从每个IP地址访问的。为了能远程连接,你需要改动它的配置。 -Open phpMyAdmin's configuration (/etc/httpd/conf.d/phpmyadmin.conf) with a text editor. Find a line that says "Deny from all", and comment it out. Then change the line that says "Allow from 127.0.0.1" to "Allow from 0.0.0.0". The updated configuration will look like the following. +用文本编辑器打开phpMyAdmin的配置文件(路径:/etc/httpd/conf.d/phpMyAdmin.conf),找出并注释掉"Deny from all"字样的代码行。然后把"Allow from 127.0.0.1"字样的代码行改成"Allow from 0.0.0.0"。重新改动过的配置文件如下所示。 $ sudo vi /etc/httpd/conf.d/phpmyadmin.conf @@ -92,9 +92,9 @@ Open phpMyAdmin's configuration (/etc/httpd/conf.d/phpmyadmin.conf) with a text Allow from 0.0.0.0 -The next step is to add a blowfish password to the phpMyAdmin's configuration. This step is needed to encrypt password in cookie as part of cookie-based authentication. +下一步是将phpMyAdmin的配置文件用blowfish加密工具加密。这一步需要加密cookie里的密码来作为基于cookie的部分认证。 -Open the following file with a text editor, and set a random blowfish password as follows. +用文本编辑器打开如下路径所示的文件并且用blowfish设置一个随机密码,如下所示。 $ sudo vi /usr/share/phpmyadmin/config.inc.php @@ -102,21 +102,21 @@ Open the following file with a text editor, and set a random blowfish password a $cfg['blowfish_secret'] = 'kd5G}d33aXDc50!'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -Finally, restart httpd to activate the change. +最后,重启httpd使改动生效。 $ sudo service httpd restart -### Test phpMyAdmin ### +### 测试phpMyAdmin ### -To test if phpMyAdmin is successfully set up, go to http:///phpmyadmin +测试phpMyAdmin是否设置成功,访问这个页面:http:///phpmyadmin ![](https://farm6.staticflickr.com/5606/15550758749_0f7ab66b5b_z.jpg) -You should be able to log with any MySQL user (e.g., root), and manage MySQL/MariaDB databases/tables via a web-based interface. +你应该能通过Web界面来记录下任何MySQL用户(比如root)和管理MySQL/MariaDB的数据库/表。 ![](https://farm8.staticflickr.com/7505/15551187008_86ac7e7db1_z.jpg) -### Troubleshooting ### +### 疑难解答 ### Here are a few troubleshooting tips during phpMyAdmin installation on CentOS. From bd3ce8c9fdc63ccd287289e96ec66b0c3449740e Mon Sep 17 00:00:00 2001 From: ZTinoZ Date: Sun, 30 Nov 2014 17:33:29 +0800 Subject: [PATCH 5/5] Finish the translation by ZTinoZ --- ...swers--How to install phpMyAdmin on CentOS.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename {sources => translated}/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md (86%) diff --git a/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md b/translated/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md similarity index 86% rename from sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md rename to translated/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md index 481f4757c6..712303ed0a 100644 --- a/sources/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md +++ b/translated/tech/20141118 Linux FAQs with Answers--How to install phpMyAdmin on CentOS.md @@ -118,17 +118,17 @@ phpMyAdmin是一款以PHP为基础,基于Web的MySQL/MariaDB数据库管理工 ### 疑难解答 ### -Here are a few troubleshooting tips during phpMyAdmin installation on CentOS. +这里有一些在CentOS上安装phpMyAdmin的过程中遇到的一些问题解决方法。 -1. When you are trying to access phpMyAdmin page in web browser, you are getting "403 Forbidding" error with: +1. 当你在浏览器里尝试连接phpMyAdmin页面的时候,你看到"403 Forbidding"错误: You don't have permission to access /phpMyAdmin on this server. -This error is happening because the default setting of phpMyAdmin blocks access from a remote IP address. To fix this error, you need to edit its configuration to allow remote access. See the above for more detail. +发生这种错误是因为phpMyAdmin默认阻止了IP地址远程连接。要修复这种错误,你需要编辑它的配置文件来允许远程连接。具体操作见上。 -2. When you access phpMyAdmin page, you are seeing "The configuration file now needs a secret passphrase (blowfish_secret)." message, and you cannot login. +2. 当你连接phpMyAdmin页面时,你看见"The configuration file now needs a secret passphrase (blowfish_secret)."信息,并且你无法登录。 -To fix this error, you need to edit /usr/share/phpmyadmin/config.inc.php to add a random blowfish password as follows, and restart httpd. +要修复这种错误,你需要编辑 /usr/share/phpmyadmin/config.inc.php 这个文件来添加一个随机的blowfish密码,然后重启httpd,如下所示。 $cfg['blowfish_secret'] = 'kd5G}d33aXDc50!'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ @@ -137,13 +137,13 @@ To fix this error, you need to edit /usr/share/phpmyadmin/config.inc.php to add $ sudo service httpd restart (CentOS 6) $ sudo systemctl restart httpd (CentOS 7) -3. When you access phpMyAdmin page, you are getting "Cannot load mcrypt extension. Please check your PHP configuration" error message. +3. 当你连接phpMyAdmin页面时,你看见"Cannot load mcrypt extension. Please check your PHP configuration"错误信息。 -To solve this error, install the following package: +要修复这种错误,要安装下面这个包: $ sudo yum install php-mcrypt -and restart httpd: +然后重启httpd: $ sudo service httpd restart (CentOS 6) $ sudo systemctl restart httpd (CentOS 7)