LSAPI context doesn't work

#1
Once, I create a new Context in a Virtual Host and fill in the mandatory fields URI and LSAPI App and the URI matches the URI of the files I want to cover in this context, the PHP scripts do not execute anymore and instead an empty response with HTTP status code 500 is returned in the browser.

This happens no matter how the URI is defined - using "exp:" or a standard URI path. Also, it happens for all LSAPI handlers that work well when not used in a Context.

The error message in the error_log contains only these lines:
[STDERR] PHP Warning: Unknown: Failed to open stream: No such file or directory in Unknown on line 0
[STDERR] PHP Fatal error: Failed opening required 'LS.' (include_path='.:/usr/local/lsws/lsphp82/share/pear:/usr/local/lsws/lsphp82/share/php:/usr/share/pear:/usr/share/php') in Unknown on line 0

Update: The issue occurs with both Server Level and VHost Level handlers.

Example context block in vhconf.conf file:

context exp:script.php {
type lsapi
handler lsphp82
addDefaultCharset off
}

Environment details:
AlmaLinux 8.9 x86_64
OpenLiteSpeed 1.7.19
 
Last edited:
Top