vexx

Member
May 1, 2012
17
2
53
cPanel Access Level
Root Administrator
Hey there,

I've recently upgraded to EA4 and since I own a bunch of WP sites, I wanted to upgrade php aswell. However, when I use MultiPHP Manager, only 2 sites can be changed, rest inherit the System Default, which is PHP 5.6

The system has both php 5.6 and 7.2 installed and the sites that do not inherit system, can have their php changed. What I don't understand is why those sites do not inherit system default and the rest are? I've made the sites pretty similar in all aspects, the configurations are the same, yet I can't do that. Checked the .htaccess file of all sites, there aren't any differences. I also checked the virtualhosts, with no luck.

All sites are individual, there is no parent of any of those sites nor do I use any subdirectories.

What am I missing?
 

Attachments

vexx

Member
May 1, 2012
17
2
53
cPanel Access Level
Root Administrator
I also tried adding this to .htaccess to any of the "inherit" sites, they are still Inherited in MultiPHP Manager.

Code:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
  AddType application/x-httpd-php .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
 

vexx

Member
May 1, 2012
17
2
53
cPanel Access Level
Root Administrator
I forgot to mention that none of the sites have an explicit version added in .htaccess. I keep looking for the differences between the sites that inherit the system default's version and the ones that don't, I can't seem to find none. Virtualhosts also don't tell me much, there's no PHP version mentioned there or anything related.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hi @vexx

The system has both php 5.6 and 7.2 installed
the sites that do not inherit system, can have their php changed
The system can have several different versions of PHP installed but only one version is the system default. In your case it looks like the System PHP Version is set to PHP 5.6 (ea-php5.6). You can confirm this for yourself by going to WHM>>Software>>MultiPHP and checking the System PHP Version

What I don't understand is why those sites do not inherit system default and the rest are?
It seems like (based on the screenshot) the two sites in question are not set to inherit. You can change the site's settings to inherit or not inherit in WHM>>Software>>MultiPHP Manger by selecting the site/s that you want to modify then go to PHP version and select from the dropdown the php version you want or select inherit if that's what you want to do.

Information on inheritance can be found here: PHP Inheritance - EasyApache 4 - cPanel Documentation
Information on the MultiPHP Manager Interface can be found here: MultiPHP Manager for WHM - Version 74 Documentation - cPanel Documentation

Thanks!
 

vexx

Member
May 1, 2012
17
2
53
cPanel Access Level
Root Administrator
Hi @vexx





The system can have several different versions of PHP installed but only one version is the system default. In your case it looks like the System PHP Version is set to PHP 5.6 (ea-php5.6). You can confirm this for yourself by going to WHM>>Software>>MultiPHP and checking the System PHP Version


It seems like (based on the screenshot) the two sites in question are not set to inherit. You can change the site's settings to inherit or not inherit in WHM>>Software>>MultiPHP Manger by selecting the site/s that you want to modify then go to PHP version and select from the dropdown the php version you want or select inherit if that's what you want to do.

Information on inheritance can be found here: PHP Inheritance - EasyApache 4 - cPanel Documentation
Information on the MultiPHP Manager Interface can be found here: MultiPHP Manager for WHM - Version 74 Documentation - cPanel Documentation

Thanks!
I know, but when I wanted to change any version, nothing happened, the version was still inherited, as nothing had happened.

I figured out the issue eventually, the .htaccess files had the group "nobody" and the username "siteuser" and for some weird reason, even if the permissions were set to 775, Multimanager couldn't write to it. I change to siteuser.siteuser, gave 755 and now it works, I can change the version. Again, not sure why it couldn't before, but this was the issue.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hello @vexx

I am glad to hear that you found the source of the issue you were experiencing. Please let us know if you encounter any similar issues in the future

Thanks!