Skip to main content

Required PHP 5.6 Version in Single Cpanel

Comments

7 comments

  • HostNoc
    HI @howardfmcw 1. Make sure you have CageFS / PHP Selector installed 2. Make sure all of your users are caged in CageFS 3. Make sure that none of your users have "native" selected in their PHP Selector If "native" is available in PHP Selector and is selected, the user will be using MultiPHP defaut system PHP version. You wouldnt' want that. After making sure that none of your users have "native" selected in their PHP Selector, you'll then want to disable "native" completely so that they do not even have an option to select it within PHP Selector. You would do that by going to WHM --> CloudLinux LVE Manager --> Selector. Default PHP Version: set this to something other than "native" Supported Versions: click "native" and disable 4. Go into MuliPHP Manager a. select a default system PHP version b. set all of your / your customers' domains to "inherit" 5. Go into the Feature Manager --> Manage Feature List "disabled" and edit it MultiPHP Manager and MultiPHP INI editor and save This will make sure that MultiPHP INI editor and MultiPHP manager are not available in customer's cPanel interface Now all of your users are using PHP selector and only PHP selector -- and they cannot choose "native" in PHP Selector and cannot see MultiPHP Manager or MultiPHP INI Editor in their cPanel interface.
    0
  • howardfmcw
    Hi, Thanks for the explaination but wanted to ask that Not allowing them PHP INI editor is good for me and them? and what if the ask to allow php ini editor as well after disabling that?
    HI @howardfmcw 1. Make sure you have CageFS / PHP Selector installed 2. Make sure all of your users are caged in CageFS 3. Make sure that none of your users have "native" selected in their PHP Selector If "native" is available in PHP Selector and is selected, the user will be using MultiPHP defaut system PHP version. You wouldnt' want that. After making sure that none of your users have "native" selected in their PHP Selector, you'll then want to disable "native" completely so that they do not even have an option to select it within PHP Selector. You would do that by going to WHM --> CloudLinux LVE Manager --> Selector. Default PHP Version: set this to something other than "native" Supported Versions: click "native" and disable 4. Go into MuliPHP Manager a. select a default system PHP version b. set all of your / your customers' domains to "inherit" 5. Go into the Feature Manager --> Manage Feature List "disabled" and edit it MultiPHP Manager and MultiPHP INI editor and save This will make sure that MultiPHP INI editor and MultiPHP manager are not available in customer's cPanel interface Now all of your users are using PHP selector and only PHP selector -- and they cannot choose "native" in PHP Selector and cannot see MultiPHP Manager or MultiPHP INI Editor in their cPanel interface.

    0
  • howardfmcw
    BTW i have applied the same method. but after doing that, that site is still showing HTTP error 500. i have changed its php version to 5.6 with php-fpm through WHM, and its showing 7.2 in cpanel selector. can you guide why its showing http 500 error still? as before uninstalling 5.6 php version it was set on 5.6 and working fine. but now after reinstalling that 5.6 its not working.
    Hi, Thanks for the explaination but wanted to ask that Not allowing them PHP INI editor is good for me and them? and what if the ask to allow php ini editor as well after disabling that?

    0
  • cPanelLauren
    Hello, I'm not aware of any method which you can have a PHP version present for one account but not another. You can choose to have the PHP Selector or MultiPHP interfaces disabled for users so that they would be unable to make changes to their PHP Configuration, this can be done through the Feature Manager within WHM.
    0
  • howardfmcw
    Hello, I'm not aware of any method which you can have a PHP version present for one account but not another. You can choose to have the PHP Selector or MultiPHP interfaces disabled for users so that they would be unable to make changes to their PHP Configuration, this can be done through the Feature Manager within WHM.

    its okay, disabled method is fine but after doing that, that site is still showing HTTP error 500. i have changed its php version to 5.6 with php-fpm through WHM, and its showing 7.2 in cpanel selector. can you guide why its showing http 500 error still? as before uninstalling 5.6 php version it was set on 5.6 and working fine. but now after reinstalling that 5.6 its not working.
    0
  • cPanelLauren
    Hello, What is the output in the error log? You can view the apache error log at /etc/apache2/logs/error_log You can also create a PHP Info page to see what PHP version is being used on the domain in actuality. You can create a phpinfo.php page in the document root for the domain (usually public_html) and it should include the following:
    0
  • howardfmcw
    Hi, it was solved. thank you
    0

Please sign in to leave a comment.