Skip to content

Instantly share code, notes, and snippets.

@stefanpejcic
Created September 26, 2024 10:02
Show Gist options
  • Save stefanpejcic/ce8d4831f045ada5fb2be0126f6a9525 to your computer and use it in GitHub Desktop.
Save stefanpejcic/ce8d4831f045ada5fb2be0126f6a9525 to your computer and use it in GitHub Desktop.
Install LSWS trial in OpenPanel container
# 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