Python CGI: Difference between revisions

 
(6 intermediate revisions by the same user not shown)
Line 125:
= Javascripts =
 
<syntaxhighlight lang="HTML" lang="pythonPython">
#!/usr/bin/python3
import json
Line 191:
 
 
== Troubleshooting ==
 
* If the Javascript is not loading & you are getting HTTP Error code 500 in the browser, Need to move the JS files output of the CGI-BIN directory.
* Every time you trying to access any file within cgi-bin path it is expecting that content will be generated by executing that file.
 
https://serverfault.com/questions/672189/how-do-i-prevent-apache2-from-trying-to-execute-a-file-as-a-script
 
<br />