summaryrefslogtreecommitdiffstats
path: root/setup
blob: a061a68762faf2c6fd40d99532f86d4bf1c2ccf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh

apk add nginx php-fpm php-sqlite3 sqlite3 lua lua-cjson lua-sqlite

adduser -H -D www
chown www:www -R /usr/share/build-errors
chown -R www:www /var/spool/build-errors/sqlite
chmod +x /usr/share/build-errors/*.sh
chmod +x /usr/share/build-errors/*.lua

ln -s mqtt-exec /etc/init.d/mqtt-exec.build-errors

vi /etc/nginx/nginx.conf
#user www www;
#worker_processes  2;
#pid /var/run/nginx/nginx.pid;
#error_log  /var/log/nginx/error.log  info;
#events {
#    worker_connections  1024;
#}
#http {
#    include       mime.types;
#    default_type  application/octet-stream;
#    sendfile        on;
#    keepalive_timeout  300;
#    server {
#        listen                  81;
#        root                    /usr/share/build-errors/www;
#        server_name             localhost;
#        client_max_body_size    32m;
#        index                   index.html index.htm index.php;
#        error_page              500 502 503 504  /50x.html;
#        location = /50x.html {
#            root                /usr/share/nginx/html;
#        }
#        location ~ \.php$ {
#                 try_files      $uri =404;
#                 fastcgi_pass   unix:/run/php-fpm/php-fpm.sock;
#                 fastcgi_index  index.php;
#                 include        fastcgi.conf;
#        }
#    }
#}

vi /etc/php/php-fpm.conf
#[global]
#error_log = /var/log/php-fpm.log
#
#[www]
#user = www 
#group = www
#listen = /run/php-fpm/php-fpm.sock
#listen.owner = www
#listen.group = www
#listen.mode = 0660
#pm = dynamic
#pm.max_children = 5
#pm.start_servers = 2
#pm.min_spare_servers = 1
#pm.max_spare_servers = 3