I'm not sure why it doesn't work on your server. Maybe you can simply use the script to install OLS + MariaDB + WordPress on a fresh server.
https://openlitespeed.org/kb/1-click-install/
bash <( curl -k https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh ) -w
Let me...