title: 500 Server Error using cgitb - shared hosting
body: <p>I tried to write a simple Python script but it gave me this error when testing it in the browser.</p>
  <pre><code>500 Server Error
  </code></pre>
  <p>A misconfiguration on the server caused a hiccup. I checked the server logs, fixed the problem, then tried again.</p>
  <p>URL: <a href="http://example.com/cgi-bin/hello.py" rel="nofollow noreferrer">http://example.com/cgi-bin/hello.py</a><br />
  Not executable: [/home1/example/public_html/cgi-bin/hello.py]</p>
  <p><code>hello.py</code> content is:</p>
  <pre><code>#!/usr/bin/python
  # -*- coding: UTF-8 -*-
  
  # enable debugging
  import cgitb
  cgitb.enable()
  
  print &quot;Content-Type: text/plain;charset=utf-8&quot;
  print
  
  print &quot;Hello World!&quot;
  </code></pre>
  <p>I'm on shared hosting, according to my web hosting provider. The error is in my code.</p>