Digital Marketing

How to fix: python file showing source code in browser instead of running as CGI script

Add:

Options +ExecCGI

AddHandler cgi-script .py


to httpd.conf or cgi-bin/.htaccess

Also be sure that your shebang line ( #!/usr/bin/python ) actually points at the path to your python executable

Popular posts from this blog

How to fix Google Apps Script: Script function not found: doGet

Creating sort index in MySQL

Selenium supports Java