Managed to modify the script to install openlitespeed with LUA from source.
Edit openlitespeed.sh
Look for:
if [[ "$ols_version" =~ "1.8" ]];then
ols_version=1.8.3-${CPU_architecture}-linux
fi
Replace with:
if [[ "$ols_version" =~ "1.8" ]];then
ols_version=1.8.3
fi
Then find this function: init_OLS()
Replace the else part of the function with:
else
#wget --no-check-certificate -O openlitespeed-${ols_version}.tgz https://openlitespeed.org/packages/openlitespeed-${ols_version}.tgz
wget --no-check-certificate -O "v${ols_version}.tar.gz" "https://github.com/litespeedtech/openlitespeed/archive/refs/tags/v${ols_version}.tar.gz"
fi
if [ ! -f "v${ols_version}.tar.gz" ];then
wget --no-check-certificate -O "v${ols_version}.tar.gz" "https://github.com/litespeedtech/openlitespeed/archive/refs/tags/v${ols_version}.tar.gz"
fi
tar -zxvf "v${ols_version}.tar.gz"
cd "openlitespeed-${ols_version}"
./build.sh
./install.sh
Install
bash openlitespeed.sh install 1.8
Configure:
Then add lua module into the openlitespeed config /usr/local/lsws/conf/httpd_config.conf
module mod_lua {
ls_enabled 1
}
Basically I just changed the function to download the source build from openlitespeed github and then install. the source build (build.sh) script automatically compiles all the modules including LUA, no need to specify by using ./configure.
aaPanel_Kern