First stop apache, nginx, php-fpm if you are running them.
List all the php 5.4 modules:
> yum list installed | grep php54
php54.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-bcmath.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-cli.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-common.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-devel.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-fpm.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-gd.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-intl.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-mbstring.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-mcrypt.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-mysqlnd.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-pdo.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-pecl-apc.x86_64 3.1.13-1.12.amzn1 @amzn-updates
php54-pecl-igbinary.x86_64 1.1.2-0.2.git3b8ab7e.6.amzn1 @amzn-updates
php54-pecl-memcache.x86_64 3.0.7-3.10.amzn1 @amzn-updates
php54-pecl-memcached.x86_64 2.1.0-1.5.amzn1 @amzn-updates
php54-pecl-xdebug.x86_64 2.2.1-1.6.amzn1 @amzn-updates
php54-process.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-soap.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-xml.x86_64 5.4.21-1.46.amzn1 @amzn-updates
php54-xmlrpc.x86_64 5.4.21-1.46.amzn1 @amzn-updates
Remove all of them:
yum remove php54.x86_64 php54-bcmath.x86_64 php54-cli.x86_64 php54-common.x86_64 php54-devel.x86_64 php54-fpm.x86_64 php54-gd.x86_64 php54-intl.x86_64 php54-mbstring.x86_64 php54-mcrypt.x86_64 php54-mysqlnd.x86_64 php54-pdo.x86_64 php54-pecl-apc.x86_64 php54-pecl-igbinary.x86_64 php54-pecl-memcache.x86_64 php54-pecl-memcached.x86_64 php54-pecl-xdebug.x86_64 php54-process.x86_64 php54-soap.x86_64 php54-xml.x86_64 php54-xmlrpc.x86_64
Install php 5.5
yum install php55.x86_64 php55-bcmath.x86_64 php55-cli.x86_64 php55-common.x86_64 php55-devel.x86_64 php55-fpm.x86_64 php55-gd.x86_64 php55-intl.x86_64 php55-mbstring.x86_64 php55-mcrypt.x86_64 php55-mysqlnd.x86_64 php55-pdo.x86_64 php55-pecl-apc.x86_64 php55-pecl-igbinary.x86_64 php55-pecl-memcache.x86_64 php55-pecl-memcached.x86_64 php55-pecl-xdebug.x86_64 php55-process.x86_64 php55-soap.x86_64 php55-xml.x86_64 php55-xmlrpc.x86_64
You may need to tweak the php-fpm settings
No comments:
Post a Comment