Question

How to update PHP to v5.4 or v5.5 on CentOS droplet?

  • Posted August 15, 2013

Im up droplet with CentOS and LAMP by manual, but php version is little outdated (5.3.3). How I can update it?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@mayaachekhalia2526: What version of CentOS are you using?

How to achieve update

hi, <br> <br>we had the same problem. <br> <br>found out this page, and it helps me <br> <br>http://www.if-not-true-then-false.com/2010/install-apache-php-on-fedora-centos-red-hat-rhel/

<b>“I hope, soon we will see new manual about this.”</b> <br> <br>There are reasons why PHP v5.4 and v5.5 are not in the main CentOS repos yet (namely, security). So, unless there’s a specific project that you’re working on that requires a more recent version of PHP, there’s some risk, w/o much incentive, to using the newer versions. <br> <br>With that said, RPM and Ubuntu LTS are sometimes criticized for being overly cautious and, thus, too slow in adding newer versions of programs to the official repos. In the end, just make sure that when going outside of the main repos, you keep an eye out for any security concerns that you may need to patch or watch out for.

Thanks to everyone! I hope, soon we will see new manual about this.

@bogdanov, the version you want is not in the main repositories for CentOS. <br>You either have to find a 3rd party repo that has the version you need, or compile the php yourself.

yum update <br>yum upgrade <br>Just run update to see if there is new version, without upgrading. <br>??? ?? ???.

What CentOS version are you using? Which article did you follow on installing php?