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 :
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
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