Y
Y
YuriyCherniy2019-09-24 12:11:14
linux
YuriyCherniy, 2019-09-24 12:11:14

Why is the CGI script not executing?

I run the CGI server built into Python3. The script itself is under the spoiler

spoiler
#!/usr/bin/python3
print("Content-type: text/html")
print()
print("Hello world!")

In the browser I get a blank screen, a log from the console on the screen.
5d89dbb91ebb3844900442.png
What am I doing wrong? OC Ubuntu 18.04, sudo doesn't help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
YuriyCherniy, 2019-09-24
@YuriyCherniy

The problem on Ubuntu 18.04 was solved by this chmod a+x/path_to_cgi_script

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question