The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
Hello,
I've recently installed Moode on raspberry 3b, and I would like to have a really basic http server on it aswell.

I start the server with:
python3 -m http.server --cgi 8001

I can access static html page without any issues. However, I have 3 dynamic pages, and I cant access them :


Code:
[color=#000000][font=Times New Roman]Error response[/font][/color]
[color=#000000][size=medium][font=Times New Roman]Error code: 403[/font][/size][/color]
[color=#000000][size=medium][font=Times New Roman]Message: CGI script is not executable ('/cgi-bin/index.py').[/font][/size][/color]
[color=#000000][size=medium][font=Times New Roman]Error code explanation: HTTPStatus.FORBIDDEN - Request forbidden -- authorization will not help.[/font][/size][/color]

To be sure its not a permission problem, i used chmod 777 on my files, and I run the python3 as root

I have also tried using port 8000, same results.

If I start the server with python3 -m http.server 8001, it correctly display the content of my file, but dont execute it.

I have the same setup on another raspbian (retropie) working without any issue.

Is there a global config or something that can prevent the execution of my files?

Thanks
Reply


Messages In This Thread
Basic http server with cgi alongside Moode - by Mwoua - 07-19-2020, 08:40 PM

Forum Jump: