Skip to main content

Inherited php versions issue

Comments

7 comments

  • vexx
    I also tried adding this to .htaccess to any of the "inherit" sites, they are still Inherited in MultiPHP Manager. # php -- BEGIN cPanel-generated handler, do not edit # Set the "ea-php56" package as the default "PHP" programming language. AddType application/x-httpd-php .php .php5 .phtml # php -- END cPanel-generated handler, do not edit
    0
  • vacancy
    Do you use mod_fcgid handler?
    0
  • vexx
    Do you use mod_fcgid handler?

    In php 5.6, which is the default, i use DSO
    0
  • vexx
    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.
    0
  • cPanelLauren
    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!
    0
  • vexx
    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: 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.
    0
  • cPanelLauren
    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!
    0

Please sign in to leave a comment.