upgrading php 5.4 to 5.6 on CentOS 7

 

  • First we need to check the current version of PHP. To check the version of PHP run following command:

  • To upgrade php, first you must include the Webtatic EL yum repository data relating to your CentOS/RHEL variant to yum:For those running on CentOS/RHEL 7:

    For those running on CentOS/RHEL 6:
  • After installing Webtatic yum repository, you need to remove the old version of php-common package. It will also delete it dependencies packages.
  • Now we install PHP 5.6 using following command:
  • After installing PHP 5.6, we need to restart Apache service.


 

Leave a Reply

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