Home:ALL Converter>Two different versions of PHP on Centos 6 64 - what are my options

Two different versions of PHP on Centos 6 64 - what are my options

Ask Time:2016-09-15T19:11:20         Author:dave

Json Formatter

I have a real dilemma here folks. This is the first time i have set up my own dedicated server so im pretty green but i have learned alot and made some mistakes along the way. One of those mistakes is that somehow i ended up with two different versions of PHP on my server. I think that possibly kaltura video server or something else i installed also installed PHP as well because i did not do this intentionally.

 /usr/bin/php 5.3 zend 2.3
 /usr/bin/php-cgi 


 /usr/local/bin/php  5.6  zend 2.6
 /usr/local/bin/php-cgi
 /usr/local/bin/php-config
 /usr/local/bin/phpize

Now im not sure what to do here because i dont know which one to get rid of and i dont think both of them will support my apache.

 Server version: Apache/2.2.15 (Unix)

So im in a real pickle here i think. I would rather have PHP 5.5 because i think that 5.5 would support my apache and also be more secure and up to date then 5.3 here are my concerns

5.6 wont support my apache and i have no clue how to update apache and im not sure if i can handle that, plus 5.6 has alot of changes that my software may have problems with.

5.3 is less secure and is very very old and running on alot of deprecated items and since i am running webmin and installed it with webmin i can uninstall 5.3 packages easy enough via the webmin menu but what do i do then.

I could update 5.3 to 5.5 but again i have no clue how to do that properly.

I could remove all of it and then install 5.5 but i have no idea if that will break apache or mysql and i dont know how to install PHP 5.5 and compile it and all of that stuff via command line, my yum only has 5.3

Im sure ill have to remove php 5.6 but i have no idea how to do that or what is dependant on it.

So on a Linux CentOS 6 64 bit with mysql Ver 14.14 Distrib 5.7.15, for Linux (x86_64) using EditLine wrapper

What would you do?

Any advise would be really appreciated, thanks so much

Author:dave,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/39509622/two-different-versions-of-php-on-centos-6-64-what-are-my-options
yy