OpenLiteSpeed Configuration
VPS > Web Server
2025-03-12T15:18:53-04:00 Isaac Greene
To get started with a web server on VPS, follow these steps.
- In your DNS settings, create an A record pointing to the IPv4 address of your web server
- Create an AAAA record pointing the IPv6 address of your server
- Run these commands to install your SSL certificate:
sudo apt updatesudo apt install python3 python3-venv libaugeas0sudo python3 -m venv /opt/certbot/sudo /opt/certbot/bin/pip install --upgrade pipsudo ln -s /opt/certbot/bin/certbot /usr/bin/certbotsudo certbot certonly --standaloneecho "0 0,12 * * * root /opt/certbot/bin/python -c 'import random; import time; time.sleep(random.random() * 3600)' && sudo certbot renew -q" | sudo tee -a /etc/crontab > /dev/null- Run
sudo /opt/certbot/bin/pip install --upgrade certbotmonthly to get security updates
- Run these commands to install and start OpenLiteSpeed
wget https://openlitespeed.org/packages/openlitespeed-1.7.16.tgztar -zxvf openlitespeed-*.tgzcd openlitespeed./install.sh/usr/local/lsws/bin/lswsctrl start
- Then follow the instructions from OpenLiteSpeed on creating vhosts and listeners. instructions WebAdmin is (ipv4):7080
- Create access log in
/srv/www/bgs/logsand load in vhost log settings - Set owner of
conftolsadm:lsadm - Change DOCROOT to
/srv/www/bgs/html/
- Create access log in
- Activate Firewall to allow only ports 22, 80, 443, and 7080.