Jump to content

Recommended Posts

Posted

Dear,

I wrote my first banal script x.py but I am not able to make it work.... could you please help?

Thanks

Rovida

 

#!/usr/bin/python3.10

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

print("Heliohost rules!")

Posted

Your cgi-bin folder's permissions were incorrect (should be 750, yours were 744), your x.py file had incorrect line endings (must be unix line endings, your file was of type none), and your .htaccess was invalid (Options +Indexes is not supported).

The script is working now: http://rovida.helioho.st/cgi-bin/x.py

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