วันพฤหัสบดีที่ 7 เมษายน พ.ศ. 2554

Installing PHP 5.3.3 on CentOS 5.5 ( 4 April 2011 )

Preliminary Note: I am using a CentOS 5.5 32bit server in this tutorial

# yum install yum-priorities

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

# rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-6.ius.el5.noarch.rpm
// Install Apache2

# yum install httpd
NOTE: If you have a previously installed version of PHP run this command.
# yum remove php php-*
# yum install php53u-pear php53u php53u-cli php53u-common php53u-devel php53u-gd php53u-mbstring php53u-mcrypt php53u-mysql php53u-pdo php53u-soap php53u-xml php53u-xmlrpc php53u-bcmath php53u-pecl-apc php53u-pecl-memcache php53u-snmp php53-ldap
NOTE: Version 3.1.4 of APC has a bug that will give you this error in you error.log file PHP Warning: require(): Unable to allocate memory for pool.
To resolve this do the following
# yum remove php53-pecl-apc
# yum update php53-pecl-apc --enablerepo=ius-testing
# vi /var/www/html/phpinfo.php
**************************** 
* *  Completion of the installation**
****************************
         // set config to start service.

# chkconfig httpd on

# service httpd start

notation : If you previously installed  another version  php , Resolving this problem is easy!

# yum remove php53-pecl-apc

# yum update php53-pecl-apc –enablerepo=ius-testing 


 Finish.... :>

ไม่มีความคิดเห็น:

แสดงความคิดเห็น