安裝方式如下:
# yum install net-tools
成功之後,就有 ifconfig 方便的指令可以使用了。
# yum install net-tools
# yum install openssh-clients
libedit0-3.0-1.20090722cvs.el4.i386.rpm
php-common-5.3.6-1.el4.remi.i386.rpm
php-5.3.6-1.el4.remi.i386.rpm
php-mbstring-5.3.6-1.el4.remi.i386.rpm
php-cli-5.3.6-1.el4.remi.i386.rpm
php-xml-5.3.6-1.el4.remi.i386.rpm
# rpm -Uvh *.rpm
[root@centos ~]# rpm -qa|grep php
php-xml-5.3.6-1.el4.remi
php-common-5.3.6-1.el4.remi
php-mbstring-5.3.6-1.el4.remi
php-5.3.6-1.el4.remi
php-cli-5.3.6-1.el4.remi
[root@sambar rpm]#
[root@centos ~]# rpm -qa|grep httpd
httpd-suexec-2.0.52-47.ent.centos4
httpd-2.0.52-47.ent.centos4
[root@centos ~]#
CentOS 4.x Server CD 安裝 Raid 1 ,
重新開機之後,
出現
error: unknow filsystem
解決法:
以 CentOS 4.4 Server CD 開機後,
輸入: linux rescue
進入救援模式。
( grub 不支援 md,所以重建過程會產生 /dev/md0 does not have any corresponding BIOS drive. 的錯誤)
進入 rescue 模式之後,
輸入:
1) grub # 進入interpreter 模式
2) root (hd0,0) # 定出根目錄
3) setup (hd0) # 將 grub 安裝在 MBR
重新開機之後,
grub 就正常了。
CentOS 5 官方 yum update 只能升到 5.1.6 ,
透過下列方式,
升級到 PHP 5.2.x 。
http://www.atomicorp.com/wiki/index.php/PHP
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
記得備份一下 /etc/php.ini 吧!
CentOS 5.3 的 yum 升級 PHP 只能到 5.1.x,
對於有 PHP 5.2 需求的人真的很不方便,
慶幸有人已經把 CentOS 5.3 將 PHP 升級到 5.2 的 套件包 做好了,
安裝起來也很容易。
# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
# wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
# rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
# yum --enablerepo=remi update php mysql
最後要升級時,
要連 mysql 和 php 一起升級,
不然會產生錯誤。
CentOS 4.5 ~ 4.7 Server 版的CD都是安裝 PHP 4.3,
但是目前 PHP 5 已經可以說無他不可了,
所以就手動將 PHP 4.3 升到 PHP 5.1 。
因為 PHP 5 在 yum 裡面是在 [centosplus] 套件中,
所以我們要先允許進行 [centosplus] 的套件升級:
# vi /etc/yum.repos.d/CentOS-Base.repo
將 enabled=0 改為 enabled=1 。
# yum install php
接下來就進行 yum 把 PHP 進行升級到 5 的動作了。