Upgrade PHP 5.3.3 to PHP 5.4 on CentOS

When you received a CentOS 6.5 system, you might find out that only PHP 5.3.3 is available.  Some research shows, PHP 5.3 is a bit faster than 5.4.x and 5.5.x. However, some CMS or Forum systems will require 5.4 and above version to run them.

Here are the steps to upgrade PHP 5.3 to 5.4.x.

  1. yum install centos-release-SCL
  2. yum install php54 php54-php php54-php-cli php54-php-common php54-php-mysql
  3. php -V                                          // you still see 5.3.x
  4. scl enable php54 "php -v"
  5. source /opt/rh/php54/enable
  6. php -V                                        // you will see PHP 5.4.x
  7. service httpd restart

Test PHP version, create a simple PHP file to show PHP information:
<?php  phpinfo() ?>

You will see PHP 5.4.xphp5_4

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditShare on StumbleUponEmail this to someoneShare on TumblrDigg this

11 thoughts on “Upgrade PHP 5.3.3 to PHP 5.4 on CentOS

  1. Great blog you have here.. It’s difficult to find good quality writing like yours nowadays.

    I truly appreciate individuals like you! Take care!!

  2. I am now not sure where you’re getting your info, however great topic.
    I must spend some time finding out more or understanding more.

    Thanks for magnificent info I used to bbe looking for thiis info for
    my mission.

  3. Good day! I just would like to offer you a huge thumbs
    up for the excellent info you’ve got right here on this post.

    I am returning to your website for more soon.

  4. Pretty section of content. I simply stumbled upon your weblog and in accession capital to say that I get actually loved
    account your blog posts. Any way I’ll be subscribing
    in your feeds or even I success you get entry to constantly rapidly.

  5. Hey just wanted to give you a quick heads up.
    The words in your content seem to be running off the screen in Firefox.
    I’m not sure if this is a formatting issue or something to do with browser
    compatibility but I thought I’d post to let you know.
    The style and design look great though! Hope you get the issue solved soon. Cheers

  6. Hi there! This article could not be written any better!
    Looking at this post reminds me of my previous roommate!
    He always kept talking about this. I am going to forward this post to him.
    Fairly certain he’ll have a great read. Many thanks for sharing!

    -Gabriel

  7. Simply wish to say your article is as surprising.
    The clearness to your put up is just nice and i could think you are a professional
    in this subject. Fine along with your permission allow me to
    grab your feed to keep updated with coming near near post.
    Thanks one million and please continue the enjoyable work.

  8. It’s really a nice and useful piece of info.
    I’m satisfied that you just shared this useful information with us.
    Please keep us informed like this. Thanks for sharing.

  9. Greate article. Keep writing such kind of info on your
    page. Im really impressed by your blog.
    Hello there, You’ve performed an excellent job. I’ll certainly
    digg it and in my view suggest to my friends.

    I’m confident they’ll be benefited from this web site.

Leave a Reply to Alfonzo Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">