在CentOS上将PHP5.3更新为PHP5.5后,我无法访问phpmyadmin

在CentOS上将PHP5.3更新为PHP5.5后,我无法访问phpmyadmin,php,linux,apache,phpmyadmin,Php,Linux,Apache,Phpmyadmin,我更新了phpadmin,然后它给出了一个错误,说它需要最新版本的PHP5.5 因此,我尝试使用以下方法更新PHP: 由于以下原因未工作: php55w-common-5.5.29-1.w5.i386 from webtatic-el5 has depsolving problems --> php55w-common conflicts with php-common Error: php55w-common conflicts with php-common 因此,我使用以下方法

我更新了phpadmin,然后它给出了一个错误,说它需要最新版本的PHP5.5

因此,我尝试使用以下方法更新PHP:

由于以下原因未工作:

php55w-common-5.5.29-1.w5.i386 from webtatic-el5 has depsolving problems
--> php55w-common conflicts with php-common
Error: php55w-common conflicts with php-common 
因此,我使用以下方法删除了php common:

yum -y remove php-common
然后,我使用以下方法安装了php 5.5:

yum -y install php55w php55w-opcache php55w-common php55w-mysql php55w-mbstring php55w-cli php55w-gd php55w-pdo php55w-mcrypt
然后我检查了php版本,它运行正常,是最新版本。但是我注意到,当删除php时,它也删除并重命名了一些conf文件,其中一个是“/etc/httpd/conf.d/phpMyAdmin.conf”

我现在得到这个错误:(for)

/etc/httpd/conf.d/phpMyAdmin.conf:

Alias /phpMyAdmin "/usr/share/phpMyAdmin"

<Directory /usr/share/phpMyAdmin/>
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
#Require ip 127.0.0.1
#Require ip ::1
Require all granted
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Allow,Deny
Allow from all
# Order Deny,Allow
# Deny from All
# Allow from 127.0.0.1
# Allow from ::1
</IfModule>
</Directory>

<Directory /usr/share/phpMyAdmin/setup/>
<IfModule mod_authz_core.c>
# Apache 2.4
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
#Deny from All
Allow from 127.0.0.1
Allow from ::1
Allow from 198.154.62.131
</IfModule>
</Directory>
我正在使用webmin,CentOS Linux 5.11


你知道如何将phpmyadmin押回吗?

conf文件似乎没问题,只是usr/share/phpmyadmin文件夹中的一些文件被删除或更改了

我将/etc/httpd/conf.d/phpMyAdmin.conf.rpmsave重命名为phpMyAdmin.conf

然后我做了以下操作,现在它可以工作了! cd/usr/share wget 解压phpMyAdmin-4.5.0.2-all-languages.zip

已打开文件管理器,将phpMyAdmin重命名为phpMyAdminOld。已删除下载的zip文件。将phpMyAdmin-4.5.0.2-all-languages重命名为phpMyAdmin。然后将config.inc.php从phpMyAdminOld复制到phpMyAdmin文件夹。重新启动apache。然后它成功了

但现在我得到了这个错误:

Your PHP MySQL library version 5.0.67 differs from your MySQL server version 5.5.28. This may cause unpredictable behavior.

是否再次使用yum安装phpMyAdmin?remove php common可能还删除了phpMyAdmin,当您将其与包管理系统一起安装时
[Mon Oct 12 21:11:24 2015] [error] [client 193.109.196.106] Directory index forbidden by Options directive: /usr/share/phpMyAdmin/ 
Your PHP MySQL library version 5.0.67 differs from your MySQL server version 5.5.28. This may cause unpredictable behavior.