はじめに
LiteSpeedって聞きなれない言葉だと思いますが、Webサーバーのひとつです。
LiteSpeedはWebサーバーとしてはシェアが2023年1月現在11.6%となっている。4位になっています。
AzureでのLiteSpeed
LiteSpeed公式によりAzureでもイメージが提供されています。ただし、LiteSpeedを単体で利用するわけではなくWordpressを導入するようです。
これは公式でもWordpressでの高速化を推しているようです。単体でインストールしたい場合はCyberPanelを利用すると便利かもしれません。今回は単体でWebサイトを立ち上げます。

いくつかのイメージが用意されています。
- WordPress Instructions
- CyberPanel Instructions
- Django Instructions
- Node.js Instructions
- Rails Instructions
今回はCyberPanelを導入してみます。これは一言でいうとLiteSpeedを管理できるダッシュボードでサイト管理からCMSの導入など一括管理できる優れものです。
CyberPanel の起動
CyberPanelをマーケットプレイスから起動します。作成は、仮想マシンを作成するのと同様です。

作成後はネットワークセキュリティグループを設定する必要があります。
ポート8090を開けます。
https://<パブリックIPアドレス>:8090
にアクセスします。ユーザー名は admin です。パスワードは仮想マシンにSSHログインして確認する必要があります。

パスワードの確認方法はSSHでログインします。最初にアップデートを行いましょう。
以下のコマンドでパスワードを確認しログインします。
sudo cat /root/.litespeed_password
System information disabled due to load higher than 1.0
* Introducing Expanded Security Maintenance for Applications.
Receive updates to over 25,000 software packages with your
Ubuntu Pro subscription. Free for personal use.
https://ubuntu.com/azure/pro
481 updates can be applied immediately.
346 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable
*** System restart required ***
********************************************************************************
Welcome to LiteSpeed One-Click CyberPanel Server.
To keep this server secure, the firewalld is enabled.
CyberPanel One-Click Quickstart guide:
* https://docs.litespeedtech.com/cloud/images/cyberpanel/
In a web browser, you can view:
* CyberPanel: https://20.51.111.198:8090
* phpMyAdmin: https://20.51.111.198:8090/dataBases/phpMyAdmin
* Rainloop: https://20.51.111.198:8090/rainloop
On the server:
* You can get the CyberPanel admin password with the following command:
sudo cat /root/.litespeed_password
* You can get the Mysql cyberpanel user password with the following command:
sudo cat /root/.db_password
System Status:
Load : 1.57, 1.68, 1.02
CPU : 52.5342%
RAM : 532/1923MB (27.67%)
Disk : 6/29GB (21%)
Please upgrade CyberPanel version from 2.1.1 to 2.3.1.,
https://docs.litespeedtech.com/cloud/cyberpanel/#how-do-i-upgrade-cyberpanel
********************************************************************************
Last login: Sat Feb 11 15:29:03 2023 from 119.106.4.75
Do you wish to update the system now? This will update the web server as well. [Y/n]?
Update Starting...
####################### (100%)
Update complete
Enjoy your accelarated CyberPanel server!
azureuser@cyberpanel:~$ sudo cat /root/.litespeed_password
admin_pass=xX7Hg2RGYimd1w1X
azureuser@cyberpanel:~$ sudo cat /root/.db_password
root_mysql_pass="d9c7db73e8c703d8f7153576b3b98327e9b51b978cea5cac"
cyberpanel_mysql_pass="d9c7db73e8c703d8f7153576b3b98327e9b51b978cea5cac"
日本語でグインするとわかりやすいですね。

バージョン管理を確認します。最新バージョンがあこるがわかります。注意:バージョンアップするとアドオンが有料サブスクリプションになるようです。

最初に最新バージョンにアップグレードします。これもSSHでログインして行う必要があります。
sudo su - -c "sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 396 100 396 0 0 2315 0 --:--:-- --:--:-- --:--:-- 2302
Fetching latest data from CyberPanel server...
This may take few seconds...
Checking root privileges...
You are running as root...
Checking server location...
System: Ubuntu 20 detected...
Press the Enter key to continue with latest version, or enter specific version such as: 1.9.4 , 1.9.5 ...etc
If nothing is input in 10 seconds, script will proceed with the latest stable version.
Please press the Enter key or specify a version number, or wait for 10 seconds:
Branch name set to v2.3.3
Ign:1 http://rpms.litespeedtech.com/debian focal InRelease
以上で準備は完了です。
Webサイトを作成
Webサーバーを確認するには、WebサイトをクリックしてWebサイトの作成に進みます。

作成画面に移動します。ここでTest Domain を有効にするうまく行きません。

作成後にアクセスします。

以上でWebサイトの作成は完了です。
まとめ
CyberPanelは分かりやすいUIでWebサイトを管理できます。Webminを思い出します。LiteSpeedを管理するには便利に利用できるとおもいます。