Skip to content

Instantly share code, notes, and snippets.

@afahitech
Last active January 25, 2021 15:36
Show Gist options
  • Save afahitech/d60d15da089bf5e968f9eed6e7fdd4d8 to your computer and use it in GitHub Desktop.
Save afahitech/d60d15da089bf5e968f9eed6e7fdd4d8 to your computer and use it in GitHub Desktop.
OpenLiteSpeed Install Ubuntu 20.04 LTS
If you need OpenLiteSpeed installation help, contact with me:
Skype: aataur1
Telegram: @AutoDevOps
WhatsApp: +8801751643484
Email: afahitech@gmail.com
===============================================
sudo apt update
sudo apt upgrade
sudo ufw allow OpenSSH
sudo ufw allow http
sudo ufw allow https
sudo ufw status
sudo ufw enable
wget -qO - https://rpms.litespeedtech.com/debian/lst_repo.gpg | sudo apt-key add -
echo "deb http://rpms.litespeedtech.com/debian/ focalmain" | sudo tee /etc/apt/sources.list-d/openlitespeed.list
sudo apt update
sudo apt install openlitespeed
sudo /usr/local/lsws/bin/lswsctrl status
sudo apt install lsphp7.4 lsphp7.4-common lsphp7.4-mysql lsphp7.4-curl
/usr/local/lsws/lsphp74/bin/php7.4 -v
sudo apt install mariadb-server
sudo systemctl start mariadb
sudo systemctl enable mariadb
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE testdb;
CREATE USER 'testuser' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON testdb.* TO 'testuser';
FLUSH PRIVILEGES;
exit
http://<YOURSERVERIP>:7080.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment