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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...