差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:podman:openlitespeed [2025/03/16 12:45] – [自動作成されるディレクトリ階層🤔] ともやんlinux:podman:openlitespeed [2025/03/20 04:34] (現在) – [lsphp83 パッケージ一覧] ともやん
行 332: 行 332:
 </WRAP> </WRAP>
  
-=== lsphp83 パッケージ ===+=== lsphp83 パッケージ一覧 ===
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ sudo dnf search lsphp83+<font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">dnf</font> search lsphp83
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result_long><html><pre> <WRAP color_result_long><html><pre>
行 383: 行 383:
 <font color="#C061CB"><b>lsphp83</b></font>-xml.x86_64 : A module for PHP applications which use XML <font color="#C061CB"><b>lsphp83</b></font>-xml.x86_64 : A module for PHP applications which use XML
 <font color="#C061CB"><b>lsphp83</b></font>-zip.x86_64 : ZIP archive management extension for PHP <font color="#C061CB"><b>lsphp83</b></font>-zip.x86_64 : ZIP archive management extension for PHP
 +</pre></html></WRAP>
 +</WRAP>
 +
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">dnf</font> install <font color="#A347BA">-y</font> lsphp83-gd lsphp83-xml lsphp83-mbstring lsphp83-pecl-apcu lsphp83-pdo lsphp83-pear
 +</pre></html></WRAP>
 +<WRAP color_result_long><html><pre>
 +AlmaLinux 9 - AppStream                                                           2.3 kB/s | 4.2 kB     00:01    
 +AlmaLinux 9 - AppStream                                                           117 kB/s |  14 MB     02:02    
 +AlmaLinux 9 - BaseOS                                                              2.4 kB/s | 3.8 kB     00:01    
 +AlmaLinux 9 - BaseOS                                                              104 kB/s |  15 MB     02:26    
 +AlmaLinux 9 - CRB                                                                 2.1 kB/s | 4.2 kB     00:02    
 +AlmaLinux 9 - CRB                                                                 106 kB/s | 3.6 MB     00:34    
 +AlmaLinux 9 - Extras                                                              3.5 kB/s | 3.3 kB     00:00    
 +AlmaLinux 9 - Extras                                                              8.1 kB/s |  13 kB     00:01    
 +Dependencies resolved.
 +==================================================================================================================
 + Package                      Architecture      Version                         Repository                   Size
 +==================================================================================================================
 +Installing:
 + <font color="#33D17A"><b>lsphp83-gd                  </b></font> x86_64            8.3.12-2.el9                    litespeed-update             40 k
 + <font color="#33D17A"><b>lsphp83-mbstring            </b></font> x86_64            8.3.12-2.el9                    litespeed-update            524 k
 + <font color="#33D17A"><b>lsphp83-pdo                 </b></font> x86_64            8.3.12-2.el9                    litespeed-update             85 k
 + <font color="#33D17A"><b>lsphp83-pear                </b></font> noarch            1:1.10.15-1.el9                 litespeed                   311 k
 + <font color="#33D17A"><b>lsphp83-pecl-apcu           </b></font> x86_64            5.1.23-1.el9.8.3                litespeed                    66 k
 + <font color="#33D17A"><b>lsphp83-xml                 </b></font> x86_64            8.3.12-2.el9                    litespeed-update            150 k
 +Installing dependencies:
 + <font color="#33D17A"><b>gd3php                      </b></font> x86_64            2.3.3-9.el9.remi                remi-safe                   136 k
 + <font color="#33D17A"><b>libavif                     </b></font> x86_64            0.11.1-5.el9                    epel                         80 k
 + <font color="#33D17A"><b>libimagequant               </b></font> x86_64            2.17.0-1.el9                    epel                         62 k
 + <font color="#33D17A"><b>lsphp83-process             </b></font> x86_64            8.3.12-2.el9                    litespeed-update             41 k
 + <font color="#33D17A"><b>oniguruma                   </b></font> x86_64            6.9.6-1.el9.6                   baseos                      217 k
 + <font color="#33D17A"><b>oniguruma5php               </b></font> x86_64            6.9.10-1.el9.remi               remi-safe                   222 k
 + <font color="#33D17A"><b>rav1e-libs                  </b></font> x86_64            0.7.1-3.el9                     epel                        1.0 M
 + <font color="#33D17A"><b>svt-av1-libs                </b></font> x86_64            0.9.0-1.el9                     epel                        1.7 M
 +
 +Transaction Summary
 +==================================================================================================================
 +Install  14 Packages
 +
 +Total download size: 4.6 M
 +Installed size: 16 M
 +Downloading Packages:
 +(1/14): oniguruma-6.9.6-1.el9.6.x86_64.rpm                                        301 kB/s | 217 kB     00:00    
 +(2/14): libimagequant-2.17.0-1.el9.x86_64.rpm                                      59 kB/s |  62 kB     00:01    
 +(3/14): libavif-0.11.1-5.el9.x86_64.rpm                                            20 kB/s |  80 kB     00:03    
 +(4/14): lsphp83-pear-1.10.15-1.el9.noarch.rpm                                      20 kB/s | 311 kB     00:15    
 +(5/14): lsphp83-pecl-apcu-5.1.23-1.el9.8.3.x86_64.rpm                              37 kB/s |  66 kB     00:01    
 +(6/14): lsphp83-gd-8.3.12-2.el9.x86_64.rpm                                         18 kB/s |  40 kB     00:02    
 +(7/14): rav1e-libs-0.7.1-3.el9.x86_64.rpm                                          40 kB/s | 1.0 MB     00:26    
 +(8/14): lsphp83-pdo-8.3.12-2.el9.x86_64.rpm                                        35 kB/s |  85 kB     00:02    
 +(9/14): lsphp83-process-8.3.12-2.el9.x86_64.rpm                                    42 kB/s |  41 kB     00:00    
 +(10/14): lsphp83-xml-8.3.12-2.el9.x86_64.rpm                                       50 kB/s | 150 kB     00:03    
 +(11/14): svt-av1-libs-0.9.0-1.el9.x86_64.rpm                                       53 kB/s | 1.7 MB     00:33    
 +(12/14): gd3php-2.3.3-9.el9.remi.x86_64.rpm                                        43 kB/s | 136 kB     00:03    
 +(13/14): lsphp83-mbstring-8.3.12-2.el9.x86_64.rpm                                  34 kB/s | 524 kB     00:15    
 +(14/14): oniguruma5php-6.9.10-1.el9.remi.x86_64.rpm                                49 kB/s | 222 kB     00:04    
 +------------------------------------------------------------------------------------------------------------------
 +Total                                                                             114 kB/s | 4.6 MB     00:41     
 +Running transaction check
 +Transaction check succeeded.
 +Running transaction test
 +Transaction test succeeded.
 +Running transaction
 +  Preparing        :                                                                                          1/1 
 +  Installing       : oniguruma5php-6.9.10-1.el9.remi.x86_64                                                  1/14 
 +  Installing       : lsphp83-xml-8.3.12-2.el9.x86_64                                                         2/14 
 +  Installing       : lsphp83-process-8.3.12-2.el9.x86_64                                                     3/14 
 +  Installing       : svt-av1-libs-0.9.0-1.el9.x86_64                                                         4/14 
 +  Installing       : rav1e-libs-0.7.1-3.el9.x86_64                                                           5/14 
 +  Installing       : libavif-0.11.1-5.el9.x86_64                                                             6/14 
 +  Installing       : libimagequant-2.17.0-1.el9.x86_64                                                       7/14 
 +  Installing       : gd3php-2.3.3-9.el9.remi.x86_64                                                          8/14 
 +  Installing       : oniguruma-6.9.6-1.el9.6.x86_64                                                          9/14 
 +  Installing       : lsphp83-mbstring-8.3.12-2.el9.x86_64                                                   10/14 
 +  Installing       : lsphp83-gd-8.3.12-2.el9.x86_64                                                         11/14 
 +  Running scriptlet: lsphp83-pear-1:1.10.15-1.el9.noarch                                                    12/14 
 +  Installing       : lsphp83-pear-1:1.10.15-1.el9.noarch                                                    12/14 
 +  Running scriptlet: lsphp83-pear-1:1.10.15-1.el9.noarch                                                    12/14 
 +  Installing       : lsphp83-pdo-8.3.12-2.el9.x86_64                                                        13/14 
 +  Installing       : lsphp83-pecl-apcu-5.1.23-1.el9.8.3.x86_64                                              14/14 
 +  Running scriptlet: lsphp83-pecl-apcu-5.1.23-1.el9.8.3.x86_64                                              14/14 
 +  Verifying        : oniguruma-6.9.6-1.el9.6.x86_64                                                          1/14 
 +  Verifying        : libavif-0.11.1-5.el9.x86_64                                                             2/14 
 +  Verifying        : libimagequant-2.17.0-1.el9.x86_64                                                       3/14 
 +  Verifying        : rav1e-libs-0.7.1-3.el9.x86_64                                                           4/14 
 +  Verifying        : svt-av1-libs-0.9.0-1.el9.x86_64                                                         5/14 
 +  Verifying        : lsphp83-pear-1:1.10.15-1.el9.noarch                                                     6/14 
 +  Verifying        : lsphp83-pecl-apcu-5.1.23-1.el9.8.3.x86_64                                               7/14 
 +  Verifying        : lsphp83-gd-8.3.12-2.el9.x86_64                                                          8/14 
 +  Verifying        : lsphp83-mbstring-8.3.12-2.el9.x86_64                                                    9/14 
 +  Verifying        : lsphp83-pdo-8.3.12-2.el9.x86_64                                                        10/14 
 +  Verifying        : lsphp83-process-8.3.12-2.el9.x86_64                                                    11/14 
 +  Verifying        : lsphp83-xml-8.3.12-2.el9.x86_64                                                        12/14 
 +  Verifying        : gd3php-2.3.3-9.el9.remi.x86_64                                                         13/14 
 +  Verifying        : oniguruma5php-6.9.10-1.el9.remi.x86_64                                                 14/14 
 +
 +Installed:
 +  gd3php-2.3.3-9.el9.remi.x86_64                        libavif-0.11.1-5.el9.x86_64                               
 +  libimagequant-2.17.0-1.el9.x86_64                     lsphp83-gd-8.3.12-2.el9.x86_64                            
 +  lsphp83-mbstring-8.3.12-2.el9.x86_64                  lsphp83-pdo-8.3.12-2.el9.x86_64                           
 +  lsphp83-pear-1:1.10.15-1.el9.noarch                   lsphp83-pecl-apcu-5.1.23-1.el9.8.3.x86_64                 
 +  lsphp83-process-8.3.12-2.el9.x86_64                   lsphp83-xml-8.3.12-2.el9.x86_64                           
 +  oniguruma-6.9.6-1.el9.6.x86_64                        oniguruma5php-6.9.10-1.el9.remi.x86_64                    
 +  rav1e-libs-0.7.1-3.el9.x86_64                         svt-av1-libs-0.9.0-1.el9.x86_64                           
 +
 +Complete!
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 451: 行 559:
 {{:linux:podman:openlitespeed_podman_001.png?720|OpenLiteSpeed 001}} {{:linux:podman:openlitespeed_podman_001.png?720|OpenLiteSpeed 001}}
 </WRAP> </WRAP>
 +</WRAP>
 +
 +==== 管理コマンドリファレンス ====
 +参考: [[https://gitlab.litespeedtech.com/preview/lsws/commands/index.html|Commands Reference - LiteSpeed Documentation - LiteSpeed Web Server]]\\
 +
 +=== 管理者アカウント/パスワード変更 ===
 +LiteSpeed WebAdmin Console のアカウント/パスワード変更する🤔\\
 +次回ログイン時から有効...😉\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269">podman</font> exec <font color="#A347BA">-ti</font> litespeed <u style="text-decoration-style:solid">/usr/local/lsws/admin/misc/admpass.sh</u>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +
 +Please specify the user name of administrator.
 +This is the user name required to login the administration Web interface.
 +
 +User name [admin]: <b class=DiYE>tomoyan</b>
 +
 +Please specify the administrator&apos;s password.
 +This is the password required to login the administration Web interface.
 +
 +Password: <b class=DiYE>-&gt; 管理者パスワード</b>
 +Retype password: <b class=DiYE>-&gt; 管理者パスワード確認用</b>
 +Administrator&apos;s username/password is updated successfully!
 +</pre></html></WRAP>
 +</WRAP>
 +
 +=== lswsctrl コマンドの使い方 ===
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">podman</font> exec <font color="#A347BA">-ti</font> litespeed <u style="text-decoration-style:solid">/usr/local/lsws/bin/lswsctrl</u> help
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +Usage: /usr/local/lsws/bin/lswsctrl {start|stop|restart|reload|condrestrt|try-restart|status|help}
 +
 +start       - start web server
 +stop        - stop web server
 +restart     - gracefully restart web server with zero down time
 +reload      - same as restart
 +condrestart - gracefully restart web server if server is running
 +try-restart - same as condrestart
 +fullrestart - do full stop then start
 +status      - show service status
 +help        - this screen
 +</pre></html></WRAP>
 </WRAP> </WRAP>
  
行 6866: 行 7019:
  
 ==== バーチャルホストの設定 ==== ==== バーチャルホストの設定 ====
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">mkdir</font> <font color="#A347BA">-p</font> lsws/conf/vhosts/tomoyan.net
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">nano</font> lsws/conf/vhosts/tomoyan.net/vhconf.conf
 +</pre></html></WRAP>
 +<WRAP color_mincode><html><pre>
 +<font color="#F92672">docRoot</font><font color="#FFFFFF">                   $VH_ROOT/</font>
 +<font color="#F92672">enableBr</font><font color="#FFFFFF">                  1</font>
  
 +<font color="#F92672">errorlog</font><font color="#FFFFFF"> $VH_ROOT/logs/error.log {</font>
 +<font color="#F8F8F2">  </font><font color="#F92672">useServer</font><font color="#FFFFFF">               1</font>
 +<font color="#F8F8F2">  </font><font color="#F92672">logLevel</font><font color="#FFFFFF">                DEBUG</font>
 +<font color="#F8F8F2">  </font><font color="#F92672">rollingSize</font><font color="#FFFFFF">             10M</font>
 +<font color="#F8F8F2">}</font>
 +
 +<font color="#F92672">context</font><font color="#FFFFFF"> / {</font>
 +<font color="#F8F8F2">  </font><font color="#F92672">location</font><font color="#FFFFFF">                $DOC_ROOT/dokuwiki</font>
 +<font color="#F8F8F2">  </font><font color="#F92672">allowBrowse</font><font color="#FFFFFF">             1</font>
 +
 +<font color="#F8F8F2">  </font><font color="#F92672">rewrite</font><font color="#FFFFFF">  </font><font color="#F6AA11">{</font>
 +
 +<font color="#FFFFFF">  }</font>
 +<font color="#FFFFFF">  addDefaultCharset       off</font>
 +
 +<font color="#FFFFFF">  phpIniOverride  {</font>
 +
 +<font color="#FFFFFF">  }</font>
 +<font color="#FFFFFF">}</font>
 +
 +<font color="#FFFFFF">rewrite  {</font>
 +<font color="#FFFFFF">  enable                  1</font>
 +<font color="#FFFFFF">  autoLoadHtaccess        1</font>
 +<font color="#FFFFFF">}</font>
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">nano</font> lsws/conf/httpd_config.conf
 +</pre></html></WRAP>
 +<WRAP color_mincode><html><pre>
 +<font color="#FFFFFF">listener HTTPS {</font>
 +<font color="#FFFFFF">  address                 *:443</font>
 +<font color="#FFFFFF">  secure                  1</font>
 +<font color="#FFFFFF">  keyFile                 /usr/local/lsws/admin/conf/webadmin.key</font>
 +<font color="#FFFFFF">  certFile                /usr/local/lsws/admin/conf/webadmin.crt</font>
 +<span style="background-color:#333333"><font color="#FFFFFF">  map                     tomoyan.lan www.tomoyan.lan</font></span><span style="background-color:#333333">                                                         </span>
 +<font color="#FFFFFF">}</font>
 +
 +<font color="#FFFFFF">virtualhost tomoyan.lan {</font>
 +<font color="#FFFFFF">  vhRoot                  /var/www/vhosts/tomoyan.net</font>
 +<font color="#FFFFFF">  configFile              conf/vhosts/tomoyan.net/vhconf.conf</font>
 +<font color="#FFFFFF">  allowSymbolLink         1</font>
 +<font color="#FFFFFF">  enableScript            1</font>
 +<font color="#FFFFFF">  restrained              0</font>
 +<font color="#FFFFFF">}</font>
 +</pre></html></WRAP>
 +</WRAP>
 +
 +設定内容を反映するために podman でコンテナ内の litespeed エンジンにリロードを指示する😉
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">podman</font> exec <font color="#A347BA">-ti</font> litespeed <u style="text-decoration-style:solid">/usr/local/lsws/bin/lswsctrl</u> reload
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +[OK] Send SIGUSR1 to 26
 +</pre></html></WRAP>
 +</WRAP>
 ===== 技術情報 ===== ===== 技術情報 =====
 コンテナは Ubuntu 22.04.3 LTS (Jammy Jellyfish) 🤔\\ コンテナは Ubuntu 22.04.3 LTS (Jammy Jellyfish) 🤔\\
  • linux/podman/openlitespeed.1742096752.txt.gz
  • 最終更新: 2025/03/16 12:45
  • by ともやん