CentOS 5.5 將php由5.1.6升級到5.3.5版(&)Drupal 7 installation

Installing PHP 5.2.x or 5.3.x on RedHat ES5, CentOS 5, etc
ref:  http://www.centric-it.com/2008/03/13/installing-php-52x-on-redhat-es5-centos-5-etc/

To install PHP 5.2.5 (Highest in repository at this time) you can make use of a RPM repository maintained by Remi.

wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

補(20110617) (以下這個檔案不存在)

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-6.noarch

rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

ps. You now have the Remi repository on your system

yum –enablerepo=remi update php


*在CentOS 5.6 時會出現錯誤(因為mysql造成鎖住現象)

解決辦法: yum remove mysql

**重新執行 yum --enablerepo=remi update php

之後就搞定了 php===> 5.3.6


yum --enablerepo=remi install mysql

yum --enablerepo=remi install mysql-server

yum --enablerepo=remi install mysql-devel



Failed to delete users : SQL flush privileges 失敗: Table 'mysql.servers' doesn't exist

Table ‘mysql.servers’ doesn’t exist


怪了 上次升級完沒有注意

這問題 很簡單 資料表建回去就好了

CREATE TABLE `servers` (
`Server_name` char(64) NOT NULL,
`Host` char(64) NOT NULL,
`Db` char(64) NOT NULL,
`Username` char(64) NOT NULL,
`Password` char(64) NOT NULL,
`Port` int(4) DEFAULT NULL,
`Socket` char(64) DEFAULT NULL,
`Wrapper` char(64) NOT NULL,
`Owner` char(64) NOT NULL,
PRIMARY KEY (`Server_name`)


所以我又安裝  yum --enablerepo=remi install msyql*

yum install mysql
yum install mysql-server
yum install mysql-devel

yum --enablerepo=remi update php

You should now have the latest PHP5 installed:


** 安裝 Drupal 7 時遇到的問題 (php extension disable)

PHP extensions    已關閉
Drupal requires you to enable the PHP extensions in the following list (see the system requirements page for more information):

[解決方法]: 安裝 php-xml (or php-dom)然後務必記得重新啟動: httpd

yum –enablerepo=remi install php-xml  (或是 php-dom)

**記得安裝完後,要 重新啟動httpd

*** 也可參考這篇: http://gogo2man.world.edoors.com/CeR8uEH5D4xQ

[無法選擇 mysql 安裝]:參考下篇



日前在安裝drupal,一直遇到 PHP MySQL support not enabled 而無法往下安裝.
發現裝了 php-odbc之後就有了.

#yum install php-odbc




X-Git-Url: http://git.mcs.anl.gov

diff --git a/doc/installation/packages.txt b/doc/installation/packages.txt
index b175d26..b23a870 100644
--- a/doc/installation/packages.txt
+++ b/doc/installation/packages.txt
@@ -43,11 +43,11 @@ Building RPM packages with ``rpmbuild``
 While you can go about building all these things from source, this
 how to will try and meet the dependencies using packages from EPEL_.
-The *el5* package should be compatible with CentOS 5.x.
+The *el5* and the *el6* package should be compatible with CentOS 5.x.
 * Installation of the EPEL_ repository package ::
-    [root@centos ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
+    [root@centos ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-6.noarch.rpm
 * Now you can install the rest of the prerequisites ::
@@ -71,7 +71,7 @@ The *el5* package should be compatible with CentOS 5.x.
 * In the particular directory is a ``Makefile`` which will do the job of
   building the RPM packages. You can do this as root, but it's not
-  recommanded ::
+  recommended::
     [you@centos redhat]$ make
Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • MySpace
  • Plurk
  • RSS
  • Google Buzz
  • Live
本篇發表於 CentOS-Linux, server, Yum。將永久鏈結加入書籤。


你的電子郵件位址並不會被公開。 必要欄位標記為 *