在CentOS上更新PHP 5.3到PHP 5.5后,我无法访问phpmyadmin


I can not access phpmyadmin after updating PHP 5.3 to PHP 5.5 on CentOS

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

所以我尝试用这个方法更新PHP:http://anandarajpandey.com/2014/04/21/virtualmin-upgrate-php-5-3-to-php-5-4-php-5-5-or-higher-version-from-yum/

没有工作,因为:

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-常用的用法:

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时,它也删除并重命名了一些配置文件,其中一个是"/etc/httpd/conf.d/phpMyAdmin.conf"

我现在得到这个错误:(对于http://198.154.62.131/phpMyAdmin/)

Forbidden
You don't have permission to access /phpMyAdmin/ on this server.
Apache/2.2.3 (CentOS) Server at 198.154.62.131 Port 80

/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>

/var/log/httpd/error_log:

[Mon Oct 12 21:11:24 2015] [error] [client 193.109.196.106] Directory index forbidden by Options directive: /usr/share/phpMyAdmin/ 

我正在使用webmin, CentOS Linux 5.11

有任何想法如何赌phpmyadmin回来?

看起来conf文件没问题,只是在usr/share/phpMyAdmin文件夹中删除或更改了一些文件。

我重命名/etc/httpd/conf.d/phpMyAdmin.conf。rpmsave回phpMyAdmin.conf

然后我做了下面的操作,现在它工作了!cd/usr/sharewget http://files.phpmyadmin.net/phpMyAdmin/4.5.0.2/phpMyAdmin-4.5.0.2-all-languages.zip解压缩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.