earthrat

Well-Known Member
Nov 8, 2010
51
3
58
Bend, OR
cPanel Access Level
Root Administrator
I have some accounts that are having an issue with PHP due to them being previously setup using CloudLinux. I have since setup MultiPHP and my server support team was able to get cPanel support to fix this. He said to correct it he had to temporarily enable PHP selector, then set the PHP version to native in PHP selector option inside of cPanel. Following that he disabled PHP selector and then the site would report the correct version of PHP as is set by MultiPHP.

My issue is that I am unclear how he did this and I have a number of other sites having this issue and need to perform the same steps for them so they are reporting the correct PHP version. Can someone tell me the steps to do this?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,274
1,291
313
Houston
Hi @earthrat

If you want to completely disable PHP selector the best course of action would be to remove alt-php. Per the CloudLinux documentation here: CloudLinux Documentation
That is simply to run the following:
Code:
yum groupremove alt-php
Thanks!
 

earthrat

Well-Known Member
Nov 8, 2010
51
3
58
Bend, OR
cPanel Access Level
Root Administrator
Thanks Lauren, but if I do that is it going to mess up these sites that are claiming the wrong version even though they are not using it? The reason I ask is because if I use MultiPHP to change to a different PHP version which I might add were also available with PHP selector the site reports the change. Seems there is something else going on here that goes beyond simply removing alt-php and I question what adverse affects this might pose to these websites? Fact of the matter is when I setup MultiPHP selector I did in fact disable PHP selector. Basically all you are telling me to do is delete the PHP version that is already disabled and it will magically fix the underlying problem that should not exist in the first place? Likewise if that is all that needed to be done, why then didnt the cPanel tech that found the issue just do that to begin with?

Its also worth noting that the version the site is reporting wrongly is not even the same version of PHP that is set in MultiPHP. If I switch to use say 5.6 the alert goes away and only resurfaces if I chose any version of 7.x.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,274
1,291
313
Houston
HI @earthrat

I can't speak for what others did or didn't do. I am giving you the solution based on CloudLinux's own documentation. They note that if you want to disable the PHP selector you need to remove alt-php. If that wasn't done previously then it wasn't actually disabled.

If you would like for us to take a closer look to ensure there won't be unforeseen consequences of removing the alt-php (which I do fully understand the reasons why you'd want to do this) please open a ticket using the link in my signature. Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!
 

earthrat

Well-Known Member
Nov 8, 2010
51
3
58
Bend, OR
cPanel Access Level
Root Administrator
Thanks again Lauren, I just replied to the ticket on my host support ticket and will go through that way. Since my cPanel license is through them I think that is the best course of action to take.
 
  • Like
Reactions: cPanelLauren

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,274
1,291
313
Houston
Hi @earthrat

Let us know what your provider says and if they're able to resolve the issue if you can. Also, if they're unable to resolve the issue please do open a ticket with us, though you are correct we do recommend you open a ticket with your provider first.


Thanks!