Jul 28, 2016
5
0
1
wisconsin
cPanel Access Level
Root Administrator
Hello, first post here and a cpanel newbie.

My specs:
WHM 54.0 (build 27), CENTOS 6.7 i686

A PHP App that I want to use requires PHP 5.3.7.

I put a file on my HTML root containing phpinfo(). It is reporting PHP 5.3.29.

However, when I log in via SSH and do:
yum list installed |grep php

I get:
cpanel-php54.i386 5.4.31-5.cp1150

When I do: php -v

I get:
Zend Engine v2.3.0

So, to me it looks like PHP 5.4 is installed, but zend is processing PHP to version 5.3.29??

Am I reading that correctly?

Can someone push me in the right direction to make sure I am using PHP 5.3.7 or greater?

Thanks!
Donovan
 

JacobPerkins

Well-Known Member
May 2, 2014
617
97
103
cPanel Access Level
DataCenter Provider
Twitter
Hi Donovan,

Those are two different PHP binaries you're looking at. The RPM for 'cpanel-php54' is for cPanels internal PHP, located at '/usr/local/cpanel/3rdparty/php/54/bin/php'

When you run 'php -v', you're running '/usr/bin/php', which is built by EasyApache.

I hope this helps!
 
Jul 28, 2016
5
0
1
wisconsin
cPanel Access Level
Root Administrator
Hi Donovan,

Those are two different PHP binaries you're looking at. The RPM for 'cpanel-php54' is for cPanels internal PHP, located at '/usr/local/cpanel/3rdparty/php/54/bin/php'

When you run 'php -v', you're running '/usr/bin/php', which is built by EasyApache.

I hope this helps!

It does. So, I guess the solution for my problem is to rebuild Apache with a newer PHP version using EasyApache3. I'm a bit scared of that, since this is a production machine where I am the "new" administrator ...but I'll make a snapshot and move forward and see what breaks.. if anything. :)

Thanks,
Donovan