This is the first time I've encountered something like this, and I haven't been able to debug it yet. Maybe someone else has seen it before.
I recently added PHP 8.1 as an lsphp option in custombuild. Completed the install, added the External App to LiteSpeed, and the Script Handler for the php81 extension.
When I configure a domain to use PHP 8.1, it does, as confirmed by phpinfo(). But it runs as the apache user. Every other PHP version runs as the expected user of that domain.
Looking through the user's httpd.conf and the LiteSpeed xml config has not yielded any clues. Everything is very similar when comparing 8.1 and 7.4 values. The closest I've found is a very, very old LSWS forum post that mentions how LSWS might configure suExec internally. I'm now wondering if it's a naive match such as php5|php7, and that's why 8.1 is having the issue.
Any thoughts? I might email LiteSpeed this afternoon if I have no luck in the meantime.
I recently added PHP 8.1 as an lsphp option in custombuild. Completed the install, added the External App to LiteSpeed, and the Script Handler for the php81 extension.
When I configure a domain to use PHP 8.1, it does, as confirmed by phpinfo(). But it runs as the apache user. Every other PHP version runs as the expected user of that domain.
Looking through the user's httpd.conf and the LiteSpeed xml config has not yielded any clues. Everything is very similar when comparing 8.1 and 7.4 values. The closest I've found is a very, very old LSWS forum post that mentions how LSWS might configure suExec internally. I'm now wondering if it's a naive match such as php5|php7, and that's why 8.1 is having the issue.
SuexecUserGroup and Script Handler
Hi there! Currently we are using LiteSpeed with the apache httpd.conf. We use SuexecUserGroup and we have defined various "external apps" (php5-small, php5-medium, php5-large) with different memory and process limitations. here some example Script Handlers: php5-small php5-medium...
www.litespeedtech.com
Any thoughts? I might email LiteSpeed this afternoon if I have no luck in the meantime.