Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Basic http server with cgi alongside Moode
#4
(07-20-2020, 01:35 PM)Mwoua Wrote: I am asking here because because my other raspberry OS (retropie) use the same raspbian version and same python version and it works. So maybe a global config of MoodeOS is blocking cgi execution

No.

Seriously, this is Web Server 101 stuff. It took me all of 5 minutes to look up the Python http module and http.server, copy and paste a trivial hello.py cgi script into a subdirectory of /home/pi on a moOde r6.7.0 player, invoke the server, and see ithe output of the script show up in a web browser. Ergo, not a moOde issue.

At this point I'm done with this thread. I'll leave with this quote from the documentation of http.server:

Quote:Note that CGI scripts will be run with UID of user nobody, for security reasons. Problems with the CGI script will be translated to error 403.


Regards,
Kent
Reply


Messages In This Thread
RE: Basic http server with cgi alongside Moode - by TheOldPresbyope - 07-20-2020, 02:37 PM

Forum Jump: