Luci on nginx compile


#54

Yes, I know, I have tried two ways to make luci on nginx.

  1. uwsgi, same uwsgi.ini and nginx.conf. I get the error shown in the pic, can't open cgi_plugin.so
  2. fcgi way according to that chinese website

#55

Cgi plugin is not an error as cgi plugin is built-in


#56

Now I'm using your makefile, it's OK now. Thank you!


#57

tought you were using the precompiled package


#58

new uwsgi file

[uwsgi]
stric = True
plugins = cgi
uwsgi_modifier1 = 9
socket = 127.0.0.1:9090
cgi-mode = true
cgi = /www/cgi-bin/luci
threads = 2
processes = 4
chdir = /usr/lib/lua/luci/
master = True
buffer-size = 10000
reload-mercy=8
max-requests=2000
limit-as=200
reload-on-as=256
reload-on-rss=192
no-orphans=True
vacuum=True
enable-threads=True
post-buffering=8192
socket-timeout=120
thunder-lock = True
logger = syslog:uwsgi
daemonize = True
log-format = %(addr) %(method) %(uri) => generated %(rsize) bytes in %(msecs) msecs

#59

reverse proxy!!!
i'd like so much to have nginx on my 7800 without fighting with uhttpd :slight_smile:


#60

by chance are you thinking about creating a specific package like to install all is needed for luci under nginx and remove uhhtpd?


#61

um... currently i'm pushing a luci-nginx package that will install nginx and luci without installing uhttpd...

I will finally push another package that will install specific nginx file and uwsgi configuration with a right init.d file to autostart it.

We need to wait... and in all this time i'm pushing a lot of fixes to improve luci and improve compatibility with uwsgi (fix reboot,apply page and and upgrade page)

:slight_smile:


#62

well i'm not in a hurry, but it would be nice to have a single package to turn "standard" luci to "nginx" luci, since not many people crate their own build..


#63

How strange, I use the latest makefile and uwsgi.ini mentioned before, but I get the cgi_plugin error again

I build from the latest 18.06 source and have executed make disclean

%E6%8D%95%E8%8E%B7


#64

Although I get this error message, it's still woking
2


#65

Login works?


#66

Yes, everything works fine. Except the cgi.plugin error, also I can't kill the uwsgi process.


#67

the uwsgi have 4 subprocess

about cgi.plugin some way to reproduce it? what is your configuration?

pgrep uwsgi

kill -kill the first one should kill uwsgi... will upload a new config with linux socket and a pid file....


#68

Base on your config, I only change this two
threads = 2 -> 1
processes = 4 -> 2


#69

Cgi.plugin is something related to someodule


#70

When I remove "plugins = cgi" , the message disappeared and nginx also work


#71

where do you remove plugins = cgi ?

anyway new package luci-nginx without dependency of uhttpd :slight_smile:


#72

where? when? how?
:slight_smile:


#73

luci-nginx it's just luci package without the uhttpd dependency :frowning: