1. Download Repo
rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el8.noarch.rpm
2. Setup Epel Release
yum install epel-release
3. Install OLS
yum install openlitespeed
4. Install PHP
yum -y install lsphp73 lsphp73-common lsphp73-mysqlnd lsphp73-gd lsphp73-process lsphp73-mbstring lsphp73-xml lsphp73-mcrypt lsphp73-pdo lsphp73-imap lsphp73-soap lsphp73-bcmath lsphp73-intl lsphp73-zip
ln -sf /usr/local/lsws/lsphp73/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp
5. Open Firewall
sudo firewall-cmd --zone=public --permanent --add-port=8088/tcp sudo firewall-cmd --zone=public --permanent --add-port=7080/tcp sudo firewall-cmd --zone=public --permanent --add-service=http sudo firewall-cmd --zone=public --permanent --add-service=https sudo firewall-cmd --reload
6. Konfigurasi
/usr/local/lsws/bin/lswsctrl start
sudo /usr/local/lsws/admin/misc/admpass.sh
7. Cek Aktivasi
/usr/local/lsws/bin/lshttpd -v
netstat -tulpn | grep openlitespeed
8. Administrator OLS
http://your_server_IP:7080
Cek web: http://your_server_IP:8088
9. Install Mariadb
yum install mariadb-server mariadb
systemctl start mariadb
mysql_secure_installation
10. Konfigurasi Mariadb
mysql -u root -p
CREATE DATABASE
CREATE USER IDENTIFIED BY
GRANT ALL PRIVILEGES ON
FLUSH PRIVILEGES
EXIT
11. Konfigurasi OLS
A. Listeners
Go to Listeners > Listener List > View/Edit Button >
B. Create dan Konfigurasi Virtual Host
C. Buat Konfigurasi Virtual Hosts > faizan.cyberpanel.net > General
D. Tambahkan Index File Virtual Hosts > faizan.cyberpanel.net > General > Index Files
E. Lakukan Rewrite Virtual Hosts > faizan.cyberpanel.net > Rewrite Rules
F. Custom php dng script handler Virtual Hosts > faizan.cyberpanel.net > Script Handler
G. Tambahkan domain ke listernet list Listeners > Listener List > Virtual Host Mappings
12. Donwload Wordpress
- cd /home
- wget https://wordpress.org/latest.tar.gz
- tar xzvf latest.tar.gz
chown -R nobody:nobody /home/wordpress/
13. Lakukan Installasi dan Konfigurasi
0 komentar:
Posting Komentar