Ubuntu20.04 webサーバー「OpenLiteSpeed」をインストールする手順
- 作成日 2020.06.04
- 更新日 2020.07.17
- OpenLiteSpeed ubuntu
- OpenLiteSpeed, Ubuntu20.04
![Ubuntu20.04 webサーバー「OpenLiteSpeed」をインストールする手順](https://mebee.info/wp-content/uploads/2020/06/image-18-890x500.png)
ブラウザ上からWebサーバー管理が可能な「OpenLiteSpeed」をUbuntu20.04にインストールする手順を記述してます。
環境
- OS Ubuntu20.04
リポジトリ追加
公式リポジトリには存在しないため、リポジトリを追加します。
wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | sudo bash
アップデートしておきます。
sudo apt update
OpenLiteSpeedインストール
OpenliteSpeedをインストールします。
sudo apt install openlitespeed
phpのパッケージをインストールします。
sudo apt install lsphp74
次にopenlightspeedのphpの設定を有効にします。
sudo ln -sf /usr/local/lsws/lsphp74/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp5
OpenLiteSpeed実行
openlightspeedを実行します。
sudo /usr/local/lsws/bin/lswsctrl start
ログインする際に利用するユーザーとパスワードを設定しておきます。
sudo /usr/local/lsws/admin/misc/admpass.sh
確認
ブラウザから http://プライベートIP or サーバーアドレス:7080 にアクセスします。
さきほど作成したユーザー名とパスワードでログインします。
![](https://mebee.info/wp-content/uploads/2020/06/image-18.png)
ログインが成功するとダッシュボードが表示されます。
![](https://mebee.info/wp-content/uploads/2020/06/image-19-1024x444.png)
日本語化
日本語化もとても簡単で画面の右上にあるEnglishを日本語に変更するだけで、日本語化できます。
![](https://mebee.info/wp-content/uploads/2020/06/image-20.png)
デフォルトポート変更
OpenLiteSpeedではデフォルトポートが8088になっているので、これを80に変更してみます。
左にある「リスナー」をクリックします。
![](https://mebee.info/wp-content/uploads/2020/06/image-21-1024x437.png)
虫眼鏡ボタンをクリックします。
![](https://mebee.info/wp-content/uploads/2020/06/openlightspeed.png)
右上位にある赤枠で囲ったボタンをクリックします。
![](https://mebee.info/wp-content/uploads/2020/06/openlightspeed-1-1024x353.png)
ポートを80番に変更します。
![](https://mebee.info/wp-content/uploads/2020/06/image-22-1024x571.png)
保存ボタンをクリックして、設定を保存します。
![](https://mebee.info/wp-content/uploads/2020/06/openlightspeed-2.png)
再起動を実行します。
![](https://mebee.info/wp-content/uploads/2020/06/openlightspeed-4.png)
実行をクリックします。
![](https://mebee.info/wp-content/uploads/2020/06/image-24-1024x365.png)
ブラウザから http://プライベートIP or サーバーアドレスにアクセスすると下記の画面が表示されることが確認できます。
![](https://mebee.info/wp-content/uploads/2020/06/image-25-1024x612.png)
-
前の記事
dockerを利用してNagiosを構築する手順 2020.06.04
-
次の記事
React.js エラー「Unterminated JSX contents」が発生した場合の対処法 2020.06.04
コメントを書く