【发布时间】:2016-01-10 06:35:05
【问题描述】:
我更新了 phpadmin,然后它报错说它需要最新版本的 PHP 5.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-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”
我现在收到此错误:(对于 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?
【问题讨论】:
-
再次用 yum 安装 phpMyAdmin?删除 php-common 可能也删除了 phpMyAdmin,当您使用包管理系统安装它时
标签: php linux apache phpmyadmin