Created
September 26, 2024 10:02
-
-
Save stefanpejcic/ce8d4831f045ada5fb2be0126f6a9525 to your computer and use it in GitHub Desktop.
Install LSWS trial in OpenPanel container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install lsws | |
bash <( curl https://get.litespeed.sh ) TRIAL | |
# symlink docroot from filemanager to ls | |
ln -s /home/stefan/josjedan.openpanel.org /usr/local/lsws/Example2/public_html | |
# install lsphp | |
wget -O - https://repo.litespeed.sh | bash | |
apt-get install lsphp81 lsphp81-common lsphp81-mysql | |
# create a new vhost listener | |
mkdir /usr/local/lsws/Example2 | |
mkdir /usr/local/lsws/Example2/{conf,html,logs} | |
# set php version server-wide | |
https://docs.openlitespeed.org/config/php/#command-line | |
# set php version per domain | |
https://docs.openlitespeed.org/config/php/#virtual-host-level | |
# edit nginx vhost for domain to pass litespeed as webserver | |
proxy_pass_header Server; | |
proxy_hide_header Server; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment