서버 설치 · 4 min read · Nov 24, 2025
Ubuntu 20.04에 MariaDB 및 PHP와 함께 OpenLiteSpeed 서버 설치 및 구성 방법

OpenLiteSpeed는 LiteSpeed Technologies에서 개발한 LiteSpeed 서버의 경량화된 오픈 소스 버전입니다. 다른 서버와 차별화되는 웹 GUI 기반 관리 패널이 함께 제공되어 관리가 용이합니다.
이 튜토리얼에서는 Ubuntu 20.04에 PHP 7.4 및 MariaDB 서버와 함께 OpenLiteSpeed 서버를 설치하는 방법을 배웁니다.
전제 조건
- Ubuntu 20.04 기반 웹 서버.
- sudo 권한이 있는 비루트 사용자 계정.
시스템을 업데이트합니다.
$ sudo apt update
$ sudo apt upgrade
1단계 - 방화벽 구성
튜토리얼을 시작하기 전에 기본적으로 활성화되어 있는 Uncomplicated Firewall(UFW)를 구성해야 합니다. 먼저 방화벽의 상태를 확인해 보겠습니다.
SSH, HTTP, HTTPS 및 포트 7080, 8088을 방화벽에서 활성화해야 합니다.
$ sudo ufw allow OpenSSH
$ sudo ufw allow http
$ sudo ufw allow https
$ sudo ufw allow 7080/tcp
$ sudo ufw allow 8088/tcp
방화벽의 상태를 확인합니다.
$ sudo ufw status
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
80/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
7080/tcp ALLOW Anywhere
8088/tcp ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
7080/tcp (v6) ALLOW Anywhere (v6)
8088/tcp (v6) ALLOW Anywhere (v6)
작동하지 않는 경우 방화벽을 시작합니다.
$ sudo ufw enable
2단계 - OpenLiteSpeed 설치
설치할 수 있는 OpenLiteSpeed의 다양한 버전이 있습니다. 이 튜토리얼을 작성할 당시 추천하는 버전은 1.6.x 또는 1.7.x 시리즈입니다.
우리는 1.6.x 버전만 유지하는 OpenLiteSpeed의 공식 저장소를 사용할 것입니다.
OpenLiteSpeed 저장소 키를 추가합니다.
$ wget -qO - https://rpms.litespeedtech.com/debian/lst_repo.gpg | sudo apt-key add -
저장소를 추가합니다.
$ echo "deb http://rpms.litespeedtech.com/debian/ focal main" | sudo tee /etc/apt/sources.list.d/openlitespeed.list
저장소를 업데이트합니다.
$ sudo apt update
OpenLiteSpeed를 설치합니다.
$ sudo apt install openlitespeed
서버의 상태를 확인합니다.
$ sudo /usr/local/lsws/bin/lswsctrl status
litespeed is running with PID 21825.
작동하지 않는 경우 다음 명령어로 시작할 수 있습니다.
$ sudo /usr/local/lsws/bin/lswsctrl start
http://에 접속하여 웹 서버에 접근합니다. 다음 페이지가 표시되어야 합니다.

3단계 - PHP 설치
OpenLiteSpeed 서버는 기본적으로 PHP 7.3을 포함하고 있습니다. 하지만 우리는 PHP 7.4를 사용하고 싶으므로 자체 복사본을 설치합니다.
추가 패키지와 함께 PHP 7.4를 설치합니다.
$ sudo apt install lsphp74 lsphp74-common lsphp74-mysql lsphp74-curl
PHP 설치를 확인합니다.
$ /usr/local/lsws/lsphp74/bin/php7.4 -v
PHP 7.4.5 (cli) (built: May 7 2020 23:08:38) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.5, Copyright (c), by Zend Technologies
활성화된 PHP 모듈을 확인할 수 있습니다.
$ /usr/local/lsws/lsphp74/bin/php7.4 --modules
PHP를 OpenLiteSpeed와 함께 작동하도록 구성할 것입니다.
4단계 - MariaDB 설치
MariaDB 서버를 설치합니다.
$ sudo apt install mariadb-server
MariaDB 서비스를 시작하고 활성화합니다.
$ sudo systemctl start mariadb
$ sudo systemctl enable mariadb
MariaDB 설치를 안전하게 유지합니다. 이 스크립트는 루트 비밀번호를 설정하고, 익명 사용자를 제거하고, 원격 루트 로그인을 금지하며, 테스트 테이블을 삭제합니다. 강력한 비밀번호를 선택하고 아래에 설명된 대로 질문에 답하십시오.
$ sudo mysql_secure_installation
[sudo] password for username:
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y
... Success!
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
이 작업이 완료되면 다음 명령어를 사용하여 MySQL 셸에 로그인할 수 있습니다.
$ sudo mysql -u root -p
접근 권한이 있는 테스트 데이터베이스와 사용자를 생성합니다. testdb 및 testuser를 설정에 적합한 이름으로 바꾸고, password를 강력한 비밀번호로 바꾸십시오.
CREATE DATABASE testdb;
CREATE USER 'testuser' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON testdb.* TO 'testuser';
FLUSH PRIVILEGES;
MySQL 셸에서 나갑니다.
exit
5단계 - OpenLiteSpeed 구성
관리자 패널 구성
관리자 패널 자격 증명을 설정합니다.
$ sudo /usr/local/lsws/admin/misc/admpass.sh
Please specify the user name of administrator.
This is the user name required to login the administration Web interface.
User name [admin]:
Please specify the administrator's password.
This is the password required to login the administration Web interface.
Password:
Retype password:
Administrator's username/password is updated successfully!
로그인 세부정보를 잊어버린 경우 이 명령어를 사용할 수도 있습니다.
관리 패널에 접근하려면 http://을 엽니다.
첫 로그인 시 브라우저에서 연결이 비공식적이라는 경고가 표시됩니다. 고급을 클릭하고
새 게시물을 받은 편지함에서 받기
스팸은 없습니다. 언제든지 구독 해지 가능합니다.