Python CGI: Difference between revisions

no edit summary
No edit summary
Line 10:
 
<pre>
ScriptAlias /cgi-bin/ /varhome/wwwtest/htmlscripts/cgi-bintechsupp_analyzer/
 
<Directory /varhome/wwwtest/htmlscripts/cgi-bintechsupp_analyzer>
AllowOverride None
Allow from all
Line 22:
 
Create Script:
sudo nano /varhome/wwwtest/htmlscripts/cgi-bintechsupp_analyzer/cgi.py
 
<syntaxhighlight lang="python">
<pre>
#!/usr/bin/python3
 
Line 31:
import cgitb
cgitb.enable()
 
print("Content-Type: text/html;charset=utf-8")
print()
print("Hello World!")
</syntaxhighlight>
</pre>
 
Change Permissions: