Skip to content

Instantly share code, notes, and snippets.

@tegansnyder
Created January 8, 2014 02:27
Show Gist options
  • Select an option

  • Save tegansnyder/8310729 to your computer and use it in GitHub Desktop.

Select an option

Save tegansnyder/8310729 to your computer and use it in GitHub Desktop.
Updating PHP from PHP Version 5.3.3 to 5.4.23 (and MySQL to 5.5.35) on Digital Ocean x64 Centos 6.4 base image.
# in case you just did a yum install of mysql and php and need to upgrade use the remi repo
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm
yum --enablerepo=remi upgrade php-mysql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml
@tegansnyder

Copy link
Copy Markdown
Author

then if you really want to be fancy you can upgrade to PHP 5.5.7
http://www.webtatic.com/packages/php55/

rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install yum-plugin-replace
yum replace php-common --replace-with=php55w-common
yum install php55w-opcache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment