LiteSpeed LSPHP not running as User

adam12

Verified User
Joined
Feb 19, 2016
Messages
126
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 upgraded LiteSpeed and it fixed itself. I did find this page that had a list of suExec handlers, and it does look semi-naive in the implementation.


It seems like modifying phpSuexecHandlers would have worked, but my version of LiteSpeed at the time appears to have ignored that setting.
 
Back
Top