# How To Upgrade PHP / MySQL

**URL:** <https://forums.interworx.com/t/how-to-upgrade-php-mysql/13932>\
**Category:** Hacks / Tools / Tips / Tricks\
**Created:** [December 6, 2015, 1:41pm UTC](https://forums.interworx.com/t/how-to-upgrade-php-mysql/13932 "2015-12-06T13:41:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![griffiti](https://forums.interworx.com/user_avatar/forums.interworx.com/griffiti/32/112_2.png) [@griffiti](https://forums.interworx.com/u/griffiti)\
**Post date:** [December 6, 2015, 1:41pm UTC](https://forums.interworx.com/t/how-to-upgrade-php-mysql/13932/1 "2015-12-06T13:41:50Z")

</div>

I setup my first Interworx controlled server about 2 months ago. I’m still learning as I go, but so far I’ve been very pleased with my decision to go with Interworx over the alternatives. As I begin to roll out new websites for clients, I quickly realized I needed to upgrade the version of PHP running on my server. Of course, upgrading to PHP 5.4 or higher requires upgrading MySQL to a version higher than 5.1.x. I realize there are several posts on this forum discussing how to do this. The steps I list below worked best for me in my situation. I’m running CentOS 6.7.

[B]wget [http://rpms.remirepo.net/enterprise/remi-release-6.rpm[/B]](http://rpms.remirepo.net/enterprise/remi-release-6.rpm%5B/B%5D)  
rpm -Uvh remi-release-6.rpm  
  
   
yum --enablerepo=remi-php56,remi update php\*  
[B]yum --enablerepo=remi install mysql mysql-server

[/B]

![mysql-version.png](https://forums.interworx.com/uploads/default/original/1X/1fa179576f901e6d7e78e4e780b8396d6e8027fb.png)

![php-version.png](https://forums.interworx.com/uploads/default/original/1X/5c53ab56b52ec31f6ff5dcea83275486635f9ce5.png)
