Hi, i've posted that thread to litespeed forums, but believe that cpanel forum may be better to post, as adviced from a reply to my thread.
The following would apply not only to litespeed, but if i wanted for example to revert from php-fpm to suphp too.
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 :
"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 "
As i'm using php-fpm (used suphp before) my accounts php version is stored in /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 .htaccess
domain.net has phpversion: ea-php70 in /var/cpanel/userdata/username/domain.net and an empty .htaccess
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) .htaccess?
I thing that it would be great if cpanel synced .htaccess with /var/cpanel/userdata/username/domain.tld php versions every time a user changes the php version, so the correct version of php is used if change handlers.
best regards,
The following would apply not only to litespeed, but if i wanted for example to revert from php-fpm to suphp too.
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 :
"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 "
As i'm using php-fpm (used suphp before) my accounts php version is stored in /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 .htaccess
domain.net has phpversion: ea-php70 in /var/cpanel/userdata/username/domain.net and an empty .htaccess
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) .htaccess?
I thing that it would be great if cpanel synced .htaccess with /var/cpanel/userdata/username/domain.tld php versions every time a user changes the php version, so the correct version of php is used if change handlers.
best regards,