RHEL6 PHP 安裝補遺

1. 解決 rpm -ivh 時所發生的 warning

2. /etc/php.ini

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone = "Asia/Taipei"

; Maximum amount of memory a script may consume (default = 128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 256M

; Maximum size of POST data that PHP will accept.
; http://www.php.net/manual/en/ini.core.php#ini.post-max-size
post_max_size = 32M

3. 安裝 php-mbstring

法一:
[shell]# rpm -ivh php-mbstring-5.3.2-6.el6.x86_64.rpm
(this rpm must download from http://rhn.redhat.com)

法二:http://itsystemsadmin.wordpress.com/2011/04/27/red-hat-enterprise-linux-6-rhel-6-install-php-mbstring/

1.) logon to http://rhn.redhat.com
2.) Systems (tab)
3.) Click on your server link
4.) Click on “Subscribed Channels (Alter Channel Subscriptions)”
5.) Put a checkmark on “RHEL Server Optional (v. 6 64-bit x86_64)”
6.) To save the new subscription, click on “Change Subscriptions” button
7.) [shell]#  yum install php-mbstring

4. 安裝 php-pecl-apc (PHP 加速器)

[shell]# rpm -ivh php-pecl-apc-3.1.3p1-1.2.el6.1.x86_64.rpm
(this rpm is copied from RHEL6 CDROM)

5. 虛擬機

[shell]# virsh list
[shell]# virsh list --all
[shell]# virsh autostart win2003srv
[shell]# virsh autostart --disable win2003srv

附註:若啟用服務 libvirt-guests,在虛擬機正在跑的情況下 reboot,開完機後連 vino-server 似乎就會出問題...

6. 防止更新 kernel, php, mysql

[shell]# vi /etc/yum.conf

exclude=php* mysql* kernel*
本篇發表於 科技。將永久鏈結加入書籤。