Jump to content

Recommended Posts

Posted

Your test script was invalid. You didn't send any headers (at minimum you must send a Content-type header when Python prints to a browser), and the line endings were of type none (must be unix).

I fixed the test file for you and its working now.

  • 2 months later...
Posted

Hello, I am a newbie and I got the same problem, this is my app :

 

#!/usr/bin/python3.10

print("Content-Type: text/html\n\n")

print("Heliohost rules!")

 

I receive this error:

Forbidden

You don't have permission to access /cgi-bin/test.py on this server.

 

Posted
20 hours ago, rovida said:

Hello, I am a newbie and I got the same problem, this is my app :

 

 

Change htdocs/cgi-bin/test.py permission to 755 with file manager.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...