Tác giả: Dương Nguyễn Phú Cường
Ngày đăng:
5/2/2025, 22:30
Lượt xem: 95
# rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm
# yum install epel-release
yum install openlitespeed
# /usr/local/lsws/bin/lswsctrl start
/usr/local/lsws/bin/lshttpd -v
yum install lsphp74 lsphp74-common lsphp74-mysqlnd lsphp74-gd lsphp74-process lsphp74-mbstring lsphp74-xml lsphp74-mcrypt lsphp74-pdo lsphp74-imap lsphp74-soap lsphp74-bcmath lsphp74-json
yum groupinstall lsphp-all
TẠo addmin pass
/usr/local/lsws/admin/misc/admpass.sh
http://SERVER_IP:7080/ atau http://localhost:7080
Server config -> External App -> Add -> type LiteSpeed SAPI
Script Handler
Neu muon doi port, chon Listener -> edit
1
2
3
4
5
6
7
|
Name: lsphp74
Address: uds://tmp/lshttpd/lsphp.sock
Notes: LSPHP74 Configuration
Max Connections: 35
Initial Request Timeout (secs): 60
Retry Timeout : 0
Command : /usr/local/lsws/lsphp74/bin/lsphp
|
1
2
3
|
Suffixes: php
Handler Type: LiteSpeed SAPI
Handler Name: lsphp74
|