phpmyadmin 提示 PHP 5.2+ is required 的解決辦法
phpmyadmin 提示 PHP 5.2+ is required 的解決辦法
PHP 5.2+ is required
#php -v
查出CentOS 5.6自帶的php是5.1.6
兩種解決方法:
1 使用低版本的phpmyadmin,下載phpMyAdmin-2.11.10-all-languages.tar.gz後再安裝OK
2 升級php
升級方法一:
安裝相應的GPG key
# rpm --import
# /etc/yum.repos.d/utterramblings.repo
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=
enabled=1
gpgcheck=1
gpgkey=
#yum install php
安裝出來的就是 php5.2.16
升級方法二:
下載安裝remi與epel
#
#
#rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
#vi /etc/yum.repos.d/remi.repo
#vi /etc/yum.repos.d/epel.repo
#vi /etc/yum.repos.d/epel-testing.repo
分別在這三個檔案的最後,增加如下一行:
priority=1
#yum --enablerepo=remi update php ----升級php
FUCK......版本太低.。找了好久,給個下載地址
/>
#再次升級php
#yum --enablerepo=remi update php
點選(此處)摺疊或開啟
-
libcurl-7.29.0-19.el5.remi.i386 from remi has depsolving problems
-
--> Missing Dependency: openldap >= 2.3.43-25.el5_8.1 is needed by package libcurl-7.29.0-19.el5.remi.i386 (remi)
- Error: Missing Dependency: openldap >= 2.3.43-25.el5_8.1 is needed by package libcurl-7.29.0-19.el5.remi.i386 (remi)
/>
#再次升級php
#yum --enablerepo=remi update php
點選(此處)摺疊或開啟
-
from package MySQL-server-5.6.22-1.rhel5.i386
-
file /usr/share/mysql/slovak/errmsg.sys from install of mysql-libs-5.5.45-1.el5.remi.i386 conflicts with file from package MySQL-server-5.6.22-1.rhel5.i386
-
file /usr/share/mysql/spanish/errmsg.sys from install of mysql-libs-5.5.45-1.el5.remi.i386 conflicts with file from package MySQL-server-5.6.22-1.rhel5.i386
-
file /usr/share/mysql/swedish/errmsg.sys from install of mysql-libs-5.5.45-1.el5.remi.i386 conflicts with file from package MySQL-server-5.6.22-1.rhel5.i386
-
file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-libs-5.5.45-1.el5.remi.i386 conflicts with file from package MySQL-server-5.6.22-1.rhel5.i386
-
- Error Summary
- FUCK。。。。。單獨升級php將提示失敗,與已經安裝的mysql衝突
- 如果是用yum安裝的mysql
-
yum --enablerepo=remi update php mysql* ---一起升級即可
如果是自己別的方式安裝的。。
rpm -e解除安裝mysql
再升級php
yum install mysql --在安裝mysql
點選(此處)摺疊或開啟
-
補充:--exclude指定跳過那些安裝包
-
-
yum --enablerepo=remi --exclude=mysql* update php
-
-
yum排除特定軟體包的語法如下:
-
-
使用下面的命令,你必須以root身份操作
-
-
yum -x {package-name} update
-
yum --exclude={package-name} update
-
舉個例子,排除httpd 或者 kernel的升級,如下:
-
-
# yum -x httpd* update
- # yum --exclude=kernel* update
-
enablerepo的用法(啟用沒預設開啟的repo)
remi-test和remi源預設是不開啟的,需要透過--enablerepo引數指定,把/etc/yum.repos.d/remi.repo裡對應的[remi]和[remi-test]塊下的enabled=0改為enabled=1則為預設開啟.
[root@gc1.cuug.net: /etc/yum.repos.d]$ yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: free.nchc.org.tw
epel | 3.6 kB 00:00
repo id repo name status
basic Red Hat Enterprise Linux 5Server - i386 - Debug 2,292
epel Extra Packages for Enterprise Linux 5 - i386 5,461
repolist: 7,753
額外啟用remiyum源後 repolist都變多了
[root@gc1.cuug.net: /etc/yum.repos.d]$ yum --enablerepo=remi repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: mirror01.idc.hinet.net
* remi: mirrors.mediatemple.net
remi | 2.5 kB 00:00
repo id repo name status
basic Red Hat Enterprise Linux 5Server - i386 - Debug 2,292
epel Extra Packages for Enterprise Linux 5 - i386 5,461
remi Les RPM de remi pour Enterprise Linux 5 - i386 1,937
repolist: 9,690
# php -v
PHP 5.3.6 (cli) (built: May 16 2011 19:18:00)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
PS:
當前安裝時CentOS已經更新到5.3,所以實際下載的包可能有所不同:
wget
wget
rpm -Uvh remi-release-5-7.el5.remi.noarch.rpm epel-release-5-4.noarch.rpm
如果單獨升級php將提示失敗,只有聯通mysql一起升級才可以,
所以我們必須執行以下命令才能升級php到5.2.9版本:
yum –-enablerepo=remi update php* mysql*
提示:"缺少mysqli擴充套件""缺少mcrypt擴充套件" 解決方式:
[root@www libraries]# yum --enablerepo=remi update php-mysqli
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
remi | 2.5 kB 00:00
<wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr>
Setting up Update Process
No Match for argument: php-mysqli
No package php-mysqli available.
No Packages marked for Update
[root@www libraries]# yum --enablerepo=remi update php-mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Update Process
Package(s) php-mysql available, but not installed.
No Packages marked for Update
[root@www libraries]# yum --enablerepo=remi install php-mysqli
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.i386 0:5.3.6-4.el5.remi set to be updated
--> Processing Dependency: php-pdo = 5.3.6-4.el5.remi for package: php-mysql
--> Running transaction check
---> Package php-pdo.i386 0:5.3.6-4.el5.remi set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================
===============================================================================================================
Installing:
Installing for dependencies:
Transaction Summary
===============================================================================================================
Install 2 Package(s)
<wbr><wbr><wbr>
Upgrade 0 Package(s)
<wbr><wbr><wbr>
Total size: 261 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installed:
Dependency Installed:
Complete!
[root@www libraries]# yum --enablerepo=remi install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.i386 0:5.3.6-4.el5.remi set to be updated
--> Processing Dependency: libmcrypt.so.4 for package: php-mcrypt
--> Running transaction check
---> Package libmcrypt.i386 0:2.5.8-4.el5.centos set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================
===============================================================================================================
Installing:
Installing for dependencies:
Transaction Summary
===============================================================================================================
Install 2 Package(s)
<wbr><wbr><wbr>
Upgrade 0 Package(s)
<wbr><wbr><wbr>
Total size: 161 k
Total download size: 45 k
Is this ok [y/N]: y
Downloading Packages:
php-mcrypt-5.3.6-4.el5.remi.i386.rpm | 45 kB 00:01
<wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr>
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installed:
Dependency Installed:
Complete!
[root@www libraries]# service httpd restart
正在停止 httpd: [ 確定 ]
<wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr>
正在啟動 httpd: [ 確定 ]
<wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29096438/viewspace-1794546/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- phpmyadmin在PHP7中顯示空白的解決辦法!PHP
- PHP提示Notice: Undefined variable的解決辦法PHPUndefined
- php json提交亂碼的解決辦法PHPJSON
- IDEA提示failed to load JVM DLL的解決辦法IdeaAIJVM
- 網站漏洞修復對phpmyadmin防止被入侵提權的解決辦法網站PHP
- 修復網站漏洞對phpmyadmin防止被入侵提權的解決辦法網站PHP
- php png失真的原因及解決辦法PHP
- IDEA、Pycharm提示解除安裝失敗的解決辦法IdeaPyCharm
- 【git】Git commit時提示錯誤時 解決辦法GitMIT
- 使用SVN提示“工作副本已經鎖定”的解決辦法 .
- Navicat tnt版本提示“failed to save password error code”的解決辦法AIError
- 安裝zblog提示“建立c_option.php失敗”的原因和解決辦法PHP
- valet install 報 Unable to determine linked PHP. 的解決辦法PHP
- php onethink驗證碼不顯示的解決辦法PHP
- idea springboot 配置檔案不自動提示的終結解決辦法IdeaSpring Boot
- Win10升級之後提示系統無法啟用的解決辦法Win10
- 公寓噪音的解決辦法
- ubantu 16.04 PHP 時間差 8 小時解決辦法PHP
- Ubuntu 16.04 PHP 時間差 8 小時解決辦法UbuntuPHP
- PHP Warning: exec() has been disabled for security 問題解決辦法PHP
- PS 2021安裝外掛提示”無法載入,未經簽署“的解決辦法!
- 【解決方案】- phpmyadmin連線mysql時登入不了,提示mysqli_real_connect()PHPMySql
- apache PHP 隱藏 index.php 報錯 No input file specified. 解決辦法ApachePHPIndex
- 記一次 Composer update 提示記憶體不夠的解決辦法記憶體
- 安裝office後安裝visiso後提示缺失檔案的解決辦法
- IDEA 總是提示登入github,登陸後不能push的解決辦法IdeaGithub
- PbootCMS提示:“會話目錄寫入許可權不足”的解決辦法boot會話
- Win7開機提示找到新的硬體嚮導的解決辦法Win7
- PbootCMS提示未匹配到本域名有效授權碼解決辦法boot
- Easyconnect登入提示:拉起虛擬網路卡失敗 解決辦法
- CentOS7 yum 安裝 提示 網路問題解決辦法CentOS
- idea啟用後提示We could not validate your license xxxx解決辦法Idea
- 執行 PHP artisan migrate 時報長度錯誤的解決辦法?PHP
- 常見php與mysql中文亂碼問題解決辦法PHPMySql
- github慢解決辦法Github
- Namespoace Terminating 解決辦法
- 升級iOS12後微信不能提示新訊息的解決辦法iOS
- iTunes降級提示未能更新iPhone發生未知錯誤3194的解決辦法iPhone
- 織夢繫統引數設定出現Token mismatch!提示的解決辦法