Luci on nginx compile

#1

Good day!
Is there any news about using Luci on nginx?
I've read topic about month ago that someone complete this task, but no detailed info at all.
Can somebody clear this moment?
Link to topic Compilation problem

0 Likes

Build for Netgear R7800
Proposal (and solution!) for High Load fix on OpenWrt (LuCI)
'Unknown Error, password not changed' with luci-ssl-nginx in 18.06.1
#2

This topic you linked was about compiling a Python package on OpenWRT, not about nginx.

See: https://wiki.openwrt.org/doc/howto/luci.essentials#luci_on_nginx

Hope this helps.

0 Likes

#3

sshot
Hmm. Here is the message from that topic.

0 Likes

#4

OK...another message also says:

So, the OP should ask @Ansuel about success wtih LuCI on nginx., as the manual says:

Luci on nginx is not possible as nginx does not support plain cgi.

0 Likes

#5

uwsgi adds support for plain cgi and compiles well... problem is set it...

we can also use this...
fcgiwrap

but it's a bit old...

if someone wants to help me in finding how to configure uwsgi...

1 Like

#6

I spent around a month researching and trying to get nginx to work with plain cgi support for LuCI in 2015ish, and at that point in time, it wasn't possible... if you are able to get nginx working with plain cgi for LuCI, please post your steps, as an asynchronous web server for a WebUI is preferred to a synchronous one like uhttpd.

0 Likes

#7

back in times we didn't have tools... now we have 2 way to make them working... fcgiwrap or uwsgi

i can't find lots of guide about uwsgi with plain cgi anyway... but i tested and it's working on lede (i mean the deamon and his service)
so now we need to find some way to configure it

i manage to compile fcgiwrap anyway very easy

anyway it looks like we need something to run LUA SCRIPT NOT PLAIN CGI

0 Likes

#8

As I can see LUA scripts also working with uWSGI: http://uwsgi.readthedocs.io/en/latest/Lua.html
And also CGI support could be enabled with uWSGI: http://uwsgi.readthedocs.io/en/latest/CGI.html
So I think uWSGI enough to make LUCI work under nginx.

0 Likes

#9

you won't belive me but i'm so close to make it working!!!

Cattura

0 Likes

#10

@Ansuel, yahooo!!! I believe in You :wink:

0 Likes

#11

problem is solve that damm unable to dispatch...

think the lua cgi is working as now it loads the page and the scripts...
nginx report 404 on cgi-bin/luci ummm

0 Likes

#12

@Ansuel what extension have scripts located in cgi-bin/luci ?

0 Likes

#13

OMFG it's working yessss

0 Likes

#14

nice :slight_smile:

0 Likes

#15

:frowning: spoke too soon... the login page loads but doesn't go ahead....
Cattura

0 Likes

#16

try change music to money for nothing...
what is in logs?

0 Likes

#17

pref under pressure :wink:
anyway now problem is that luci repond with a 403 error forbidden like here with lighthttpd

https://github.com/openwrt/luci/issues/922

0 Likes

#18

Is that fix works?

0 Likes

#19

looks like no :frowning:

0 Likes

#20

Is that a solution? https://github.com/openwrt/luci/issues/1639

0 Likes