質問編集履歴

4

追記

2020/06/25 13:41

投稿

rumippu
rumippu

スコア26

test CHANGED
File without changes
test CHANGED
@@ -131,3 +131,25 @@
131
131
  コード
132
132
 
133
133
  ```
134
+
135
+
136
+
137
+
138
+
139
+ また、lighttpdのエラーログを調べたところ、以下のように記録がありました。
140
+
141
+ ```
142
+
143
+ 2020-06-25 22:38:26: (mod_fastcgi.c.1112) the fastcgi-backend /var/www/chart_temp.py failed to start:
144
+
145
+ 2020-06-25 22:38:26: (mod_fastcgi.c.1116) child exited with status 8 /var/www/chart_temp.py
146
+
147
+ 2020-06-25 22:38:26: (mod_fastcgi.c.1119) If you're trying to run your app as a FastCGI backend, make sure you're using the F$
148
+
149
+ If this is PHP on Gentoo, add 'fastcgi' to the USE flags.
150
+
151
+ 2020-06-25 22:38:26: (mod_fastcgi.c.1406) [ERROR]: spawning fcgi failed.
152
+
153
+ 2020-06-25 22:38:26: (server.c.1022) Configuration of plugins failed. Going down.
154
+
155
+ ```

3

修正

2020/06/25 13:41

投稿

rumippu
rumippu

スコア26

test CHANGED
File without changes
test CHANGED
@@ -47,6 +47,8 @@
47
47
  インストールが必要なアプリがあるのでしょうか。
48
48
 
49
49
 
50
+
51
+ ```
50
52
 
51
53
  server.modules = (
52
54
 
@@ -125,3 +127,7 @@
125
127
  )
126
128
 
127
129
  )
130
+
131
+ コード
132
+
133
+ ```

2

confファイルの追加

2020/06/25 11:50

投稿

rumippu
rumippu

スコア26

test CHANGED
File without changes
test CHANGED
@@ -35,3 +35,93 @@
35
35
 
36
36
 
37
37
  以上、よろしくお願いいたします。
38
+
39
+
40
+
41
+
42
+
43
+ 追記:lighttpd.confファイルの中身を記載します。
44
+
45
+ 下記、参考URLからそのまま持ってきたのですが、足りない点、または
46
+
47
+ インストールが必要なアプリがあるのでしょうか。
48
+
49
+
50
+
51
+ server.modules = (
52
+
53
+ "mod_access",
54
+
55
+ "mod_alias",
56
+
57
+ "mod_compress",
58
+
59
+ "mod_redirect",
60
+
61
+ "mod_fastcgi",
62
+
63
+ # "mod_rewrite",
64
+
65
+ )
66
+
67
+
68
+
69
+ server.document-root = "/var/www/"
70
+
71
+ server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
72
+
73
+ server.errorlog = "/var/log/lighttpd/error.log"
74
+
75
+ server.pid-file = "/var/run/lighttpd.pid"
76
+
77
+ server.username = "www-data"
78
+
79
+ server.groupname = "www-data"
80
+
81
+ server.port = 80
82
+
83
+
84
+
85
+
86
+
87
+ index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
88
+
89
+ url.access-deny = ( "~", ".inc" )
90
+
91
+ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
92
+
93
+
94
+
95
+ compress.cache-dir = "/var/cache/lighttpd/compress/"
96
+
97
+ compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
98
+
99
+
100
+
101
+ # default listening port for IPv6 falls back to the IPv4 port
102
+
103
+ include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
104
+
105
+ include_shell "/usr/share/lighttpd/create-mime.assign.pl"
106
+
107
+ include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
108
+
109
+
110
+
111
+ fastcgi.server = (
112
+
113
+ "chart_temp.py" => (
114
+
115
+ "python-fcgi" => (
116
+
117
+ "socket" => "/tmp/test.python.socket",
118
+
119
+ "bin-path" => "/var/www/chart_temp.py",
120
+
121
+ "check-local" => "disable",
122
+
123
+ "max-procs" => 1)
124
+
125
+ )
126
+
127
+ )

1

参考URL

2020/06/25 11:35

投稿

rumippu
rumippu

スコア26

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,6 @@
1
1
  下記URLを参考に、raspberry piで取得した温度データをMySQLのテーブルに追加。
2
+
3
+ 参考URL:http://make.bcde.jp/raspberry-pi/%E3%82%BB%E3%83%B3%E3%82%B5%E3%81%AE%E8%A8%98%E9%8C%B2%E3%82%92%E3%82%B0%E3%83%A9%E3%83%95%E5%8C%96/
2
4
 
3
5
  そのテーブルデータをローカルサーバー上からグラフとして表示させようと思っています。
4
6