PHP version is posted wrong
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Kevin Morrison
  2. Thursday, 26 September 2013
  3.  Subscribe via email
After changing the PHP version using PHP Selector it shows wrong version in cPanel
Rate this post:
  1. 26.09.2013 12:09:05
  2. # 1
Kevin Morrison Accepted Answer
Posts: 11
Joined: 25.09.2013
0
Votes
Undo
Not sure if this is a bug or if it simply does not work? I changed the PHP version on an account to a newer version than the default but when you look at the sidebar stats in the account cPanel it still shows the account is using the server default version and I have confirmed that the account is working with the new version. Is there something else I need to do or is this something we just have to know is correct?
  1. 09.12.2013 04:12:13
  2. # 2
Kevin Accepted Answer
Posts: 1
Joined: 08.12.2013
0
Votes
Undo
I have this exact same issue and I discovered that my PHP handler (mod_php/DSO) is NOT compatible with the PHP Selector component of Cloud Linux.

It is compatible with the other three common handlers - suPHP, FCGID, CGI

You should check this as it might be the cause of your problem, however is you are using mod_php/DSO, changing handlers may break some web sites.
  1. 09.12.2013 10:12:05
  2. # 3
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
Kevin Morrison, we are aware about this issue and hope will be able to fix in next releases.

Kevin, php-selector by it\'s nature can work only with suphp/fcgid/cgi as in this case PHP scripts are executed with user ownership. And changing handler (dso > suphp/fcgid) will not brake your websites, only in some cases htaccess directives will not be processed, but overall procedure is safe enough.
  1. 09.12.2013 10:12:52
  2. # 4
Kevin Morrison Accepted Answer
Posts: 11
Joined: 25.09.2013
0
Votes
Undo
Thanks Bogdan, that is good to know. I have clients that are irritated with me because of this, although I am able to prove they are getting what they paid for it is additional time I do not have.
  1. 30.03.2014 00:03:39
  2. # 5
Fernis Accepted Answer
Posts: 3
Joined: 30.03.2014
0
Votes
Undo
I am having the same issue as the original poster..

I just installed Cloudlinux today on an established shared hosting server running CentOS 6.5 and cPanel. What am I missing that would prevent this setting from showing the correct verion of php? 

My current settings are listed below... 

WHM 11.42.0 (build 23) 

Kernel Version 2.6.32-458.23.2.lve1.2.52.el6.x86_64 (SMP) x86_64 

Distro Name Icon CloudLinux Server release 6.5 (Pavel Popovich) 

Default PHP Version (.php files) 5 
PHP 5 Handler suphp 
Apache suEXEC on 
Apache Ruid2 off 
  1. 10.04.2014 17:04:53
  2. # 6
Host Provider Accepted Answer
Posts: 48
Joined: 31.01.2012
0
Votes
Undo
I don't think they (cloudlinux developers) ever "fixed" this problem.  The PHP version shown in the cpanel is always the version installed by EasyApache in the WHM.  It doesn't show the actual PHP version of the account which is selected by CloudLinux PHP Selector.

I have no idea why they can't fix this, as it is definitely very annoying when customer switches PHP version and then contacts us to complain it isn't working because cpanel still shows the old server default version.
  1. 12.04.2014 12:04:13
  2. # 7
Jules Robinson Accepted Answer
Posts: 10
Joined: 10.04.2014
0
Votes
Undo
I could be mistaken, but doesn\'t cPanel use its own internal build of PHP separate from the rest of the system? That used to be how it worked, so it makes sense cPanel is not reporting a different version even if clients have changed it using PHP selector, because cPanel doesn\'t use that one.

If clients contact you regarding this, it should be relatively trivial to tell them to upload a PHPInfo page to their space and see that the version is changing correctly....
  1. 12.04.2014 14:04:48
  2. # 8
Host Provider Accepted Answer
Posts: 48
Joined: 31.01.2012
0
Votes
Undo
Yes, it's easy for us to understand because we're technical people.  We know how this stuff works. 

But for the vast majority of our customers, who are non-technical, it's very confusing.  It shouldn't be necessary to waste our time and our customer's time to teach them how to create a phpinfo page just to view basic PHP version, when that is already being displayed.

So you buy a car and you look at the speedometer.  Oh no, wait.  That speedometer isn't accurate.  No, you need to install your own special equipment so you can view the correct speed for your car.  The one included in the vehicle isn't correct. 

??
  1. 13.04.2014 00:04:21
  2. # 9
Jules Robinson Accepted Answer
Posts: 10
Joined: 10.04.2014
0
Votes
Undo
Wow, angry and bitter much? I wasn't saying this wouldn't be fixed, merely informing you that right now I would think it's working correctly fr om that point of view.

It's not confusing at all if you explain what I previously wrote to your clients; that cPanel uses a different version of PHP. Most scripts these days will provide some system information and inform the user what version of PHP they're running, so they could see the changes immediately. Alternatively you could create the PHP info script for your client. Though the fact you consider it a waste of time speaks volume for your customer service and customer service skills ;)

PS. Your analogy was terrible. There is only ever one velocity in a car, and is not comparable to a PHP Selector environment wh ere multiple versions can be running at the same time.

At the end of the day you can sit here and complain about it not working "correctly" and demanding it be fixed, or you could do your job and show your clients how to see that it's not the same version running in cPanel. It's never a waste of time to do your job, is it? One day it will be fixed and you can relax again...
  1. 13.04.2014 00:04:34
  2. # 10
Jules Robinson Accepted Answer
Posts: 10
Joined: 10.04.2014
0
Votes
Undo
<merged>
  1. 14.04.2014 10:04:29
  2. # 11
Donald Holl Accepted Answer
Posts: 4
Joined: 01.06.2011
0
Votes
Undo
The PHP version displayed in the stats sidebar of the cPanel X3 theme is from the PHP installation compiled by EasyApache, not the alt-php RPMs from CloudLinux and not the cpanel-php RPMs used by third-party PHP-based software and plug-ins internal to cPanel&WHM.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.