简体   繁体   English

在Centos 6中安装phpMyAdmin

[英]Install phpMyAdmin in Centos 6

I am installing mysql and php on CentOS 6. While trying to install phpMyAdmin i am getting the following error on command prompt 我正在CentOS 6上安装mysql和php。在尝试安装phpMyAdmin时,我在命令提示符下收到以下错误

No package phpMyAdmin available. 没有可用的软件包phpMyAdmin。 Nothing to do I am following the below tutorial to install and configure my server. 什么也做,请按照以下教程安装和配置服务器。 This is my first attempt to install and setup my server 这是我第一次尝试安装和设置服务器

LINK 链接

Please guide me 请指导我

Thank you 谢谢

I wanted the latest version (4.0.5), not the 3.5 version in EPEL and found this information which worked perfectly for me: 我想要的是最新版本(4.0.5),而不是EPEL中的3.5版本,发现此信息非常适合我:

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum --enablerepo=remi install phpmyadmin

from http://www.if-not-true-then-false.com/2012/install-phpmyadmin-on-fedora-centos-red-hat-rhel/ 来自http://www.if-not-true-then-false.com/2012/install-phpmyadmin-on-fedora-centos-red-hat-rhel/

Phpmyadmin isn't shipped with Centos. Phpmyadmin不随Centos一起提供。 But there are unofficial repositories for phpmyadmin. 但是,有phpmyadmin的非官方存储库。 I suggest you install the EPEL. 我建议您安装EPEL。

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm

or 要么

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

and than install using the enablerepo flag 然后使用enablerepo标志进行安装

yum --enabledrepo=epel install phpmyadmin

At the moment the phpmyadmin package in the epel repo is not the latest version (4.0.3), but it's the most recent 3.5.x version. 目前,epel repo中的phpmyadmin软件包不是最新版本(4.0.3),而是最新的3.5.x版本。

A small warning: don't install phpmyadmin from the RPMforge repo. 一个小警告:不要从RPMforge存储库安装phpmyadmin。 Since this repo is somewhere at version 2. 由于此仓库位于版本2中。

It's about two months since the questions was asked, so I don't expect to be of any use to the original question author, but there are always people visiting old questions with the same problem. 提出问题距此大约两个月了,所以我不希望这对原始问题的作者有用,但是总会有人访问具有相同问题的旧问题。

To get the packages we need, we'll have to add an additional repo to our system. 为了获得我们需要的软件包,我们必须在系统中添加一个额外的仓库。 The EPEL repo (Extra Packages for Enterprise Linux) contains many additional packages, including the phpMyAdmin package we are looking for. EPEL存储库(用于企业Linux的附加软件包)包含许多其他软件包,包括我们正在寻找的phpMyAdmin软件包。

The EPEL repository can be made available to your server by installing a special package called epel-release. 通过安装称为epel-release的特殊软件包,可以将EPEL库供您的服务器使用。 This will reconfigure your repository list and give you access to the EPEL packages. 这将重新配置您的存储库列表,并允许您访问EPEL软件包。

To install, just type: 要安装,只需键入:

sudo yum install epel-release

Now that the EPEL repo is configured, you can install the phpMyAdmin package using the yum packaging system by typing: 现在已经配置了EPEL存储库,您可以使用yum打包系统通过键入以下命令来安装phpMyAdmin软件包:

sudo yum install phpmyadmin

You can't find it as the directions state you need to add the package (myAdmin) to your repository first, update then install with Yum. 您找不到它作为指示状态,您需要先将软件包(myAdmin)添加到存储库,先更新再用Yum安装。 You need to search an alternate way to add to your repo , then update ya repo, then install :) 您需要搜索添加到您的仓库中的另一种方法,然后更新您的仓库,然后安装:)

For that you can download phpMyAdmin from here 为此,您可以从此处下载phpMyAdmin

after downloading use rpm -ivh packagename.rpm or follow your tutorial it wont show above error 下载后使用rpm -ivh packagename.rpm或按照您的教程进行操作,不会显示上述错误

You can just download phpmyadmin from here: https://www.phpmyadmin.net/ 您可以从此处下载phpmyadmin: https//www.phpmyadmin.net/

and unzip and move to apache root directory then you can check that in your url. 并解压缩并移至apache根目录,然后可以在URL中进行检查。

sudo yum install epel-release sudo yum安装epel-release

 -some version this command not works

To Install Phymyadmin sometimes this command not works 要安装Phymyadmin,有时此命令无效

so use this below command 所以在下面使用这个命令

sudo amazon-linux-extras install epel sudo amazon-linux-extras安装epel

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

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