Update PHP 5.3 for Kloxo
You can follow the steps below to update your php version to 5.3 for Kloxo.Install repository
Creat file /etc/yum.repos.d/ius.repo[ius]
name=IUS Community Packages for Enterprise Linux 5 - $basearch
baseurl=http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/$basearch
enabled=1
gpgcheck=0
Creat file /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 5 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
enabled=1
gpgcheck=0
exclude=nginx*
Install yum replace
yum install yum-plugin-replaceReplace php with php53u
yum replace php --replace-with=php53u* Other way: remove php and install php53u
yum -y remove php php-commonCreate a php.ini template for php5.3
yum -y install php53u php53u-cli php53u-devel php53u-gd php53u-imap php53u-mbstring php53u-mysql php53u-pdo php53u-pear php53u-xml
# cp /usr/local/lxlabs/kloxo/file/phpini/php.ini.template-5.2 /usr/local/lxlabs/kloxo/file/phpini/php.ini.template-5.3Verify the new PHP version.
# chown -R lxlabs:lxlabs /usr/local/lxlabs/kloxo/file/phpini/php.ini.template-5.3
# php -v
Không có nhận xét nào:
Đăng nhận xét