当webmin把php从5.16升级到5.2.7后,肯定是出现了一堆问题的..不然也不会有这篇文章出来鸟.
首先.升级php
vi /etc/yum.repos.d/utterrambling.repo
如果你的vps或主机是32bit的Centos请输入以下内容:
[utterramblings] name=Jason,s Utter Ramblings Repo baseurl=http://www.jasonlitka.com/media/EL5/i386/ enabled=1 gpgcheck=1 gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
[utterramblings] name=Jason,s Utter Ramblings Repo baseurl=http://www.jasonlitka.com/media/EL5/x86_64/ enabled=1 gpgcheck=1 gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
vim /etc/yum/pluginconf.d/fastestmirror.conf
yum remove php* yum -y upgrade php
yum remove php* mysql*
yum -y install php php-* mysql mysql-*
[root@AI18 mysql]# mysql_upgrade Looking for 'mysql' as: mysql Looking for 'mysqlcheck' as: mysqlcheck Running 'mysqlcheck with default connection arguments mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect FATAL ERROR: Upgrade failed
141010 12:38:44 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 141010 12:38:44 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 481 error messages, but it should contain at least 641 error messages. Check that the above file is the right version for this program!
wget http://mysql.llarian.net/Downloads/MySQL-5.1/mysql-5.1.73.tar.gz tar -zxf mysql tar -zxf mysql-5.1.73.tar.gz ls cd mysql-5.1.73 mv /usr/share/mysql/english/errmsg.sys /usr/share/mysql/english/errmsg.sys.old cp sql/share/english/errmsg.sys /usr/share/mysql/english/errmsg.sys service mysqld restart
mysql_upgrade -uroot -p