Hi, i've used a test licence for litespeed and noticed a problem that forced me to revert back to apache and stop migrating to litespeed.
I'm on centos 7, latest whm and cloudlinux.
I've know from an older cpanel thread with the support that :
As i'm using php-fpm (used suphp before) my accounts php version is stored in
Every account has, in the document root of every domain, handlers in .htaccess that do not always match the running version of php, or have no handlers at all.
For example:
When reverting from apache to litespeed i understand that the .htaccess version of php is used in order litespeed to know which php version will use.
That resulted in many websites to show 500 errors, as some use ioncube for a specific php version, or use cms that need php5.6 to run.
Is there a way to rebuild the .htaccess handlers from the current php version of php-fpm, in order to continue the migration, so when litespeed is up, all the correct php version are on every domain (also subdomain/addon domain)?
best regards,
I'm on centos 7, latest whm and cloudlinux.
I've know from an older cpanel thread with the support that :
The handler lines within the .htaccess are primarily designed to inform apache of the php versions when php-fpm is not in use; However, when php-fpm is in use the user configurations at /var/cpanel/userdata/username/domain.tld contain the actual php version
/var/cpanel/userdata/username/domain.tld
Every account has, in the document root of every domain, handlers in .htaccess that do not always match the running version of php, or have no handlers at all.
For example:
domain.com
has phpversion: ea-php56 in /var/cpanel/userdata/username/domain.com
, but AddType application/x-httpd-ea-php72 .php .php7 .phtml
in .htaccessdomain.net
has phpversion: ea-php70 in /var/cpanel/userdata/username/domain.net
and an empty .htaccessWhen reverting from apache to litespeed i understand that the .htaccess version of php is used in order litespeed to know which php version will use.
That resulted in many websites to show 500 errors, as some use ioncube for a specific php version, or use cms that need php5.6 to run.
Is there a way to rebuild the .htaccess handlers from the current php version of php-fpm, in order to continue the migration, so when litespeed is up, all the correct php version are on every domain (also subdomain/addon domain)?
best regards,
Last edited by a moderator: