Last active
March 21, 2022 16:06
-
-
Save rakibulinux/4cb831e915b2ddca46c4dcd15963683c to your computer and use it in GitHub Desktop.
How to Install OpenLiteSpeed HTTP Server with PHP on Ubuntu 20.04 LTS
This file contains 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
#!/bin/sh | |
#Install OpenLiteSpeed | |
sudo -i | |
wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debain_repo.sh | bash | |
sudo apt install openlitespeed -y | |
systemctl status openlitespeed | |
netstat -plntu | |
#Install PHP 7.4 OpenLiteSpeed Version | |
sudo apt install lsphp74 lsphp74-common lsphp74-mysql lsphp74-dev lsphp74-curl lsphp74-dbg -y | |
netstat -pl | grep lsphp | |
#Install and Configure MySQL | |
sudo apt install mariadb-client mariadb-server | |
systemctl start mariadb | |
systemctl enable mariadb | |
mysql_secure_installation | |
mysql -u root -p | |
select User, Password, Host from mysql.user; | |
#To start the server, we shall run /usr/local/lsws/bin/lswsctrl start and to stop it, we shall run /usr/local/lsws/bin/lswsctrl stop | |
sudo /usr/local/lsws/bin/lswsctrl start | |
sudo /usr/local/lsws/bin/lswsctrl restart | |
#Setup OpenLiteSpeed Admin | |
cd /usr/local/lsws/admin/misc/ | |
sh admpass.sh | |
https://localhost:7080/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment