Skip to main content

One user different PHP versions per directories . I have Cloud linux+php selector

Comments

8 comments

  • cPRex Jurassic Moderator
    Hey there! Can you try and set the PHP version using the CloudLinux tools or cPanel >> MultiPHP Editor? Manually tweaking the .htaccess will likely not give you the desired results.
    0
  • Iondr
    Hey there! Can you try and set the PHP version using the CloudLinux tools or cPanel >> MultiPHP Editor? Manually tweaking the .htaccess will likely not give you the desired results.

    I use php selector for that and i have php 5.6(current) and is working but i need php 8.0 for another directory in the same account.
    0
  • cPRex Jurassic Moderator
    Could you make that directory a subdomain? If so, that would allow to the MultiPHP tools to see that as a unique area for web content, and that would take care of the issue and let you do that directly through the interface.
    0
  • quietFinn
    When you set PHP version using CloudLinux PHP Selector it will be that account's default PHP version. After that you can select another PHP version in cPanel MultiPHP Manager. You can't set PHP version for a directory but if you create a subdomain pointing to that directory it will work. EDIT: seems cPRex has the same idea :-p
    0
  • cPRex Jurassic Moderator
    Any day I'm saying the same words as @quietFinn is a good day.
    0
  • Iondr
    Thx! In that account i have 3 sites, it works with MultiPHP Manager, now i have 2 sites with php 5.6 by php selector and 1 with php81 by MultiPHP Manager. I found something strange, if i set php80 (MultiPHP Manager) is not working, only php74&php81.
    0
  • quietFinn
    I found something strange, if i set php80 (MultiPHP Manager) is not working, only php74&php81.

    What means "is not working"? You get error(s)?
    0
  • Iondr
    My bad, is working (wordpress) but on php 5.6 when i select ea-php80 in multi php manager. If i select 8.1 and do refresh on /phpinfo.php i see 8.1 with 80 selected phpinfo.php is showing 5.6. Is ok 81 or 74, thx for help!
    0

Please sign in to leave a comment.