Phpinfo shows default php version, even though PHP selector shows different

acenetgeorge

Well-Known Member
PartnerNOC
Mar 6, 2008
68
4
58
Southfield, MI
cPanel Access Level
DataCenter Provider
I have PHP Selector running on a handful of severs, and it is working extremely well. But I have one server that a phpinfo script shows the default php version (5.3), even though that particular account is running 5.4 with PHP Selector/ The server even shows php 5.4 with a "php -v" when su'd to the account.

Is there something that I am overlooking? I installed CageFS and PHP Selector with the exact same steps as on other servers, and this is only occurring on this server.
 

iseletsk

Well-Known Member
Verifed Vendor
Most likely cagefs is not working because suPHP/suexec are not patched. You can check it by running:
$ strings /usr/local/apache/bin/suexec | grep jail
lve_jail_uid
CageFS jail error %s
$ strings /opt/suphp/sbin/suphp | grep jail
lve_jail_uid
CageFS jail error

if you don't get anything regarding lve_jail & CageFS -- itis not patched.

Try running:
/usr/sbin/cpanel-compile-suexec.sh
/usr/sbin/cpanel-compile-suphp.sh

If that doesn't help - try running /scripts/easyapache --build
If neither of those will help -- contact our support.
 

sahostking

Well-Known Member
May 15, 2012
339
4
68
Cape Town, South Africa
cPanel Access Level
Root Administrator
Ok I did the above with same issue existing BUT

I noticed the following seeing as I'm using Litespeed.

If I switch to apache it changes correctly and looks good. If I change back to LiteSpeed the same issue exists. Weird one.

- - - Updated - - -

ooo found this "http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:cl_phpselector_how_to"