ユーザ用ツール

サイト用ツール


serverapps:lighttpd

差分

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

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
serverapps:lighttpd [2021/02/05 12:51]
hayashi [参考]
serverapps:lighttpd [2022/07/01 15:03] (現在)
hayashi [php7.4]
行 9: 行 9:
  
 ==== lighttpd.conf ==== ==== lighttpd.conf ====
 +=== IPv6 ===
  
  
行 15: 行 16:
   server.use-ipv6 = "disable"   server.use-ipv6 = "disable"
  
-IP設定+=== IP設定 ===
  
   server.bind = "192.168.1.251"   server.bind = "192.168.1.251"
   $SERVER["socket"] == "192.168.1.251:80" { }   $SERVER["socket"] == "192.168.1.251:80" { }
  
 +=== Dir設定 ===
 +どうも、pkgからインストールして初期に配置されるconfigはDir設定周りがおかしい((2021.08.20 13.0で確認))ので以下のように直した。\\
 +なお、**/usr/local/www/lighttpd/data**は自分でDirを作る
 +
 +  var.log_root    = "/var/log/lighttpd"
 +  var.server_root = "/usr/local/www/lighttpd"
 +  var.state_dir   = "/var/run"
 +  var.home_dir    = "/var/spool/lighttpd"
 +  var.conf_dir    = "/usr/local/etc/lighttpd"
 +
 +  server.document-root = "/usr/local/www/lighttpd/data/"
 +  
 ==== conf.d/dirlisting.conf ==== ==== conf.d/dirlisting.conf ====
  
行 33: 行 46:
 として として
   # service lighttpd start   # service lighttpd start
-===== php5 =====+===== php7.4 =====
  
-インストール+インストール((php8には対応していない 2022.07.01 現在))
  
-  # pkg install php5+  # pkg install php74
  
 /usr/local/etc/lighttpd/modules.conf /usr/local/etc/lighttpd/modules.conf
行 43: 行 56:
   include "conf.d/fastcgi.conf"   include "conf.d/fastcgi.conf"
  
-conf.d/fastcgi.conf+conf.d/fastcgi.conf((参考: https://www.php.net/manual/ja/install.unix.lighttpd-14.php))
  
 <code> <code>
 fastcgi.server = ( ".php" => fastcgi.server = ( ".php" =>
                     (("bin-path" => "/usr/local/bin/php-cgi",                     (("bin-path" => "/usr/local/bin/php-cgi",
-                      "socket" => "/tmp/php.socket" +                      "socket" => "/tmp/php.socket", 
-                     ))+                      "bin-environment" => ( 
 +                        "PHP_FCGI_CHILDREN" => "16", 
 +                        "PHP_FCGI_MAX_REQUESTS" => "10000" 
 +                      ), 
 +                      "min-procs" => 1, 
 +                      "max-procs" => 1, 
 +                      "idle-timeout" => 20 
 +                    ))
                  )                  )
 </code> </code>
serverapps/lighttpd.1612497116.txt.gz · 最終更新: 2021/02/05 12:51 by hayashi