how to from cli display ALL modules installed?

Cold-Egg

Administrator
#2
CLI and API call methods are not available yet. How about `grep module /usr/local/lsws/conf/httpd_config.conf`, it will at least show the configured modules on the server level.
 
#3
grep module /usr/local/lsws/conf/httpd_config.conf
thanks,
my ouput is:
Code:
~pepsi  grep module /usr/local/lsws/conf/httpd_config.conf
module cache {
module cyberpanel_ols {
~pepsi
then I don't have ACTIVE the module mod_rewrite active ???
how I turn ON these module ?

also I will need the module LiteSpeed ???


... me understand all this modules is required for:

https://docs.litespeedtech.com/lsws...t-lsapi_max_process_time-environment-variable

Code:
<IfModule LiteSpeed>
    <IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule (scriptA|scriptB|scriptC)\.php - [E=noabort:1]
    </IfModule>
</IfModule>
( because I need run "script_eternal.php" for 1 month continually ... )
 
#4
For OpenLiteSpeed, you don't need to specify <IfModule LiteSpeed>, as that directive is typically used in shared hosting environments running LiteSpeed Enterprise (LSWS).

You also don't need to wrap rules inside <IfModule mod_rewrite.c>, since OpenLiteSpeed supports mod_rewrite functionality by default. Just make sure that Enable Rewrite and Auto Load from .htaccess are enabled at the virtual host level.
 
#6
this is my VPS:

Code:
~pepsi  /usr/local/lsws/bin/lshttpd -v
LiteSpeed/1.8.4 Open (BUILD built: Tue Nov  4 13:44:54 UTC 2025)
        module versions:
        lsquic 4.3.1
        modgzip 1.1
        cache 1.66
        mod_security 1.4 (with libmodsecurity v3.0.14)

~pepsi
we not have LiteSpeed Enterprise
 
#7
ah!, here is code for CHECK modules from HTTP+PHP:
Code:
<pre><?php
if(function_exists('apache_get_modules')){
    $modules = apache_get_modules();
    print_r($modules);
    }
however why function apache_get_modules() run over LSWS ?
 
Top