Skip to main content

[CPANEL-23998] Wrong PHP version detected after version change when using PHP-FPM and LiteSpeed

Comments

9 comments

  • cPanelMichael
    Hello @dzamanakos, Internal case CPANEL-23998 is open to address the issue where changing an account's PHP version (when PHP-FPM is enabled on the account) results in problems with PHP version detection when Litespeed is installed due to the way .htaccess files are read. I'll monitor this case and update this thread with more information as it becomes available. In the meantime, the temporary workaround is to manually remove the PHP version definitions from the .htaccess files in the document roots of the affected domains. Additionally, another case (CPANEL-26248) is open to address the fact that PHP-FPM is shown as available and/or enabled when LiteSpeed is installed and running. This leads to confusion because LiteSpeed doesn't actually recognize or utilize PHP-FPM (it only uses LSPHP). Thank you.
    0
  • dzamanakos
    Thank you for your response. The problem is, in some cases, that .htaccess shows the default version (php72), but the real version of the account is sometimes different. If i delete the Addtype section, then the system's default php (php72) will be used and that will cause the same problem for users that have version
    0
  • cPanelMichael
    The problem is, in some cases, that .htaccess shows the default version (php72), but the real version of the account is sometimes different. If i delete the Addtype section, then the system's default php (php72) will be used and that will cause the same problem for users that have version
    Hello @dzamanakos, Can you open a
    0
  • dzamanakos
    Hi, i hope in internal cases CPANEL-23998 and (CPANEL-26248) will cover the following scenario : I used php-fpm before migrating to litespeed. So all php versions are in /var/cpanel/userdata/username/domain.tld files. Now i'm using litespeed. As a cpanel user, I'm adding a subdomain (or addon domain, or a new cpanel account) for an account and in /home/user/subdomain.domain.com folder an .htaccess is created with add handler for php72 (system default). I'm changing the php version through cpanel php manager to php 7.0 WHM thinks i'm using php-fpm and sets php 70 to /var/cpanel/userdata/username/subdomain.domain.com The .htacces does not change and still shows the handler for php72 Litespeed reads .htaccess and executes scripts as php7.2 In order to use php 7.0 i have to delete the php handler from .htaccess. best regards,
    0
  • cPanelMichael
    Hello @dzamanakos, Case CPANEL-23998 will fix that issue. It will make Apache PHP-FPM .htaccess settings compatible with LSAPI and it also fixes an issue where unnecessary .htaccess lines are added when Apache PHP-FPM is enabled (which results in breakage on the switch to LSAPI). I'll update this thread once it's published. Thank you.
    0
  • cPanelMichael
    Hello @dzamanakos, The following document provides an overview of how MultiPHP interacts with the .htaccess file: MultiPHP INI Editor for cPanel - Version 80 Documentation - cPanel Documentation Provided you use MultiPHP INI Editor and MultiPHP Manager from the UI, the changes are automatically synced to the correct configuration file for the specific PHP handler assigned to the domain (e.g. .htaccess, php.ini). Can you provide more information about why you'd like to see a change to the existing behavior after the issue reported on this thread is solved? Thank you.
    0
  • dzamanakos
    Hi, by viewing the whole ticket from start i see that by fixing these 2 cases, the system will work as expected. My last post was more of confusing, so consider it wrong, or delete it. best regards,
    0
  • cPanelMichael
    Hello @dzamanakos, I've removed your earlier post per your request and I'll update this thread again once the referenced cases are published. Thanks!
    0
  • cPanelMichael
    Hello, To update, here's the entry in the Release Tier on the link below:
    0

Please sign in to leave a comment.