質問編集履歴
1
詳細
test
CHANGED
File without changes
|
test
CHANGED
@@ -39,3 +39,247 @@
|
|
39
39
|
|
40
40
|
|
41
41
|
以上、よろしくお願いいたします。
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
追記:
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
ありがとうございます。
|
50
|
+
|
51
|
+
私の環境でターミナル出力結果を記載いたします。
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
```ここに言語を入力
|
56
|
+
|
57
|
+
pi@raspberrypi:/var/www $ ps aux | grep lighttpd
|
58
|
+
|
59
|
+
pi 23715 0.0 0.2 3776 1916 pts/1 S+ 13:14 0:00 grep --color=auto lighttpd
|
60
|
+
|
61
|
+
```
|
62
|
+
|
63
|
+
多分正常に起動していないようです。
|
64
|
+
|
65
|
+
```ここに言語を入力
|
66
|
+
|
67
|
+
pi@raspberrypi:/var/www $ lighttpd -t -f /etc/lighttpd/lighttpd.conf
|
68
|
+
|
69
|
+
Duplicate config variable in conditional 0 global: fastcgi.server
|
70
|
+
|
71
|
+
2020-06-27 13:15:26: (configfile.c.957) source: /etc/lighttpd/lighttpd.conf line: 48 pos: 1 parser failed somehow near here: (EOL)
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
```
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
server.modules = (
|
80
|
+
|
81
|
+
"mod_access",
|
82
|
+
|
83
|
+
"mod_alias",
|
84
|
+
|
85
|
+
"mod_compress",
|
86
|
+
|
87
|
+
"mod_redirect",
|
88
|
+
|
89
|
+
"mod_fastcgi",
|
90
|
+
|
91
|
+
# "mod_rewrite",
|
92
|
+
|
93
|
+
)
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
server.document-root = "/var/www"
|
98
|
+
|
99
|
+
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
|
100
|
+
|
101
|
+
server.errorlog = "/var/log/lighttpd/error.log"
|
102
|
+
|
103
|
+
server.pid-file = "/var/run/lighttpd.pid"
|
104
|
+
|
105
|
+
server.username = "www-data"
|
106
|
+
|
107
|
+
server.groupname = "www-data"
|
108
|
+
|
109
|
+
server.port = 80
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
|
114
|
+
|
115
|
+
url.access-deny = ( "~", ".inc" )
|
116
|
+
|
117
|
+
static-file.exclude-extensions = ( ".php", ".pl", )
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
compress.cache-dir = "/var/cache/lighttpd/compress/"
|
122
|
+
|
123
|
+
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
# default listening port for IPv6 falls back to the IPv4 port
|
128
|
+
|
129
|
+
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
|
130
|
+
|
131
|
+
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
|
132
|
+
|
133
|
+
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
fastcgi.server = (
|
140
|
+
|
141
|
+
"doStuff.py" => (
|
142
|
+
|
143
|
+
"doStuff" => (
|
144
|
+
|
145
|
+
"socket" => "/tmp/fastcgi.python.socket",
|
146
|
+
|
147
|
+
"bin-path" => "/var/www/doStuff.py",
|
148
|
+
|
149
|
+
"check-local" => "disable",
|
150
|
+
|
151
|
+
"max-procs" => 1)
|
152
|
+
|
153
|
+
),
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
"test.py" => (
|
158
|
+
|
159
|
+
"test" => (
|
160
|
+
|
161
|
+
"socket" => "/tmp/test.python.socket",
|
162
|
+
|
163
|
+
"bin-path" => "/var/www/test.py",
|
164
|
+
|
165
|
+
"check-local" => "disable",
|
166
|
+
|
167
|
+
"max-procs" => 1)
|
168
|
+
|
169
|
+
)
|
170
|
+
|
171
|
+
)
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
```
|
176
|
+
|
177
|
+
上記には問題なく、おそらくfastcgiがうまく接続できていない(?)ためのエラーのため、
|
178
|
+
|
179
|
+
最終行をエラーとして返していたのだと思います。
|
180
|
+
|
181
|
+
昨日まではtest.pyもdoStuff.py(index2.htmlよりdoStuff.py経由でGPIOを操作)も
|
182
|
+
|
183
|
+
サーバーから操作可能でした。
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
```ここに言語を入力
|
188
|
+
|
189
|
+
pi@raspberrypi:/var/www $ sudo lsof -iTCP -nP
|
190
|
+
|
191
|
+
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
|
192
|
+
|
193
|
+
sshd 576 root 3u IPv4 9430 0t0 TCP *:22 (LISTEN)
|
194
|
+
|
195
|
+
sshd 576 root 4u IPv6 9432 0t0 TCP *:22 (LISTEN)
|
196
|
+
|
197
|
+
mysqld 1043 mysql 10u IPv4 9561 0t0 TCP 127.0.0.1:3306 (LISTEN)
|
198
|
+
|
199
|
+
smbd 1339 root 35u IPv6 10680 0t0 TCP *:445 (LISTEN)
|
200
|
+
|
201
|
+
smbd 1339 root 36u IPv6 10681 0t0 TCP *:139 (LISTEN)
|
202
|
+
|
203
|
+
smbd 1339 root 37u IPv4 10682 0t0 TCP *:445 (LISTEN)
|
204
|
+
|
205
|
+
smbd 1339 root 38u IPv4 10683 0t0 TCP *:139 (LISTEN)
|
206
|
+
|
207
|
+
Xtightvnc 1597 pi 0u IPv4 9982 0t0 TCP *:6001 (LISTEN)
|
208
|
+
|
209
|
+
Xtightvnc 1597 pi 3u IPv4 9984 0t0 TCP *:5901 (LISTEN)
|
210
|
+
|
211
|
+
Xtightvnc 1597 pi 4u IPv4 9985 0t0 TCP 192.168.0.20:5901->192.168.0.10:49192 (ESTABLISHED)
|
212
|
+
|
213
|
+
sshd 23327 root 3u IPv4 77161 0t0 TCP 192.168.0.20:22->192.168.0.10:52192 (ESTABLISHED)
|
214
|
+
|
215
|
+
sshd 23337 pi 3u IPv4 77161 0t0 TCP 192.168.0.20:22->192.168.0.10:52192 (ESTABLISHED)
|
216
|
+
|
217
|
+
```
|
218
|
+
|
219
|
+
lighttpdは立ち上がっておりません。。
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
```
|
224
|
+
|
225
|
+
pi@raspberrypi:/var/www $ ls -l /etc/lighttpd/conf-enabled
|
226
|
+
|
227
|
+
合計 0
|
228
|
+
|
229
|
+
lrwxrwxrwx 1 root root 33 6月 26 21:56 10-fastcgi.conf -> ../conf-available/10-fastcgi.conf
|
230
|
+
|
231
|
+
lrwxrwxrwx 1 root root 37 6月 26 21:56 15-fastcgi-php.conf -> ../conf-available/15-fastcgi-php.conf
|
232
|
+
|
233
|
+
lrwxrwxrwx 1 root root 42 1月 1 1970 90-javascript-alias.conf -> ../conf-available/90-javascript-alias.conf
|
234
|
+
|
235
|
+
```
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
```ここに言語を入力
|
240
|
+
|
241
|
+
pi@raspberrypi:/var/www $ tree
|
242
|
+
|
243
|
+
.
|
244
|
+
|
245
|
+
├── CreateJsonFromMySql.php
|
246
|
+
|
247
|
+
├── chart_temp.py.save
|
248
|
+
|
249
|
+
├── chart_temp2.py
|
250
|
+
|
251
|
+
├── chart_temp_tmp.py
|
252
|
+
|
253
|
+
├── doStuff.py
|
254
|
+
|
255
|
+
├── doStufftest.py
|
256
|
+
|
257
|
+
├── hello.html
|
258
|
+
|
259
|
+
├── html
|
260
|
+
|
261
|
+
│ ├── index.lighttpd.html
|
262
|
+
|
263
|
+
│ └── index.nginx-debian.html
|
264
|
+
|
265
|
+
├── index2.html
|
266
|
+
|
267
|
+
├── phptest.html
|
268
|
+
|
269
|
+
├── template.html
|
270
|
+
|
271
|
+
├── test.java
|
272
|
+
|
273
|
+
├── test.py
|
274
|
+
|
275
|
+
└── test2.html
|
276
|
+
|
277
|
+
```
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
ちなみにとりあえずchmod 755で全てのファイルに権限は付与しています。
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
上記で原因が分かりますでしょうか・・・?
|