Created
January 3, 2021 08:11
-
-
Save amanjuman/0485ee380962940029f93d6aa92a9d7a to your computer and use it in GitHub Desktop.
Openlitespeed Complete Server Setup
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
hostnamectl set-hostname hostname.domain.tld | |
sudo add-apt-repository ppa:ondrej/php -y && sudo add-apt-repository ppa:certbot/certbot -y && wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | sudo bash | |
sudo apt-get update && sudo apt-get -y upgrade && sudo apt dist-upgrade -y && sudo apt-get autoremove -y | |
sudo apt install ufw openlitespeed certbot lsphp74 lsphp74-common lsphp74-dev lsphp74-curl lsphp74-imap lsphp74-mysql lsphp74-intl lsphp74-json lsphp74-opcache lsphp74-imagick lsphp74-memcached lsphp74-redis lsphp74-pgsql lsphp74-sqlite3 lsphp74-tidy lsphp74-snmp lsphp74-dbg mysql-server -y | |
sudo ufw allow 22,53,80,443,7080,8088/tcp | |
sudo ufw default reject | |
sudo ufw enable | |
systemctl start lsws | |
systemctl enable lsws | |
systemctl status lsws | |
sudo ln -sf /usr/local/lsws/lsphp74/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp5 | |
sudo /usr/local/lsws/admin/misc/admpass.sh | |
certbot certonly --webroot -w /usr/local/lsws/Example/html/ -d hostname.domain.tld --agree-tos --register-unsafely-without-email | |
cd /usr/local/lsws/Example/html/ | |
wget -c http://wordpress.org/latest.tar.gz | |
tar -xzvf latest.tar.gz | |
chown -R nobody:nogroup /usr/local/lsws/Example/html/wordpress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment