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

Comments

Popular posts from this blog

MySQL Sandbox with the Sakila sample database