Open Eavis opened 7 years ago
or you can allow .py files to be executed as scripts in a particular folder you would use config in apache conf file:
1 2 3 4 <Directory /srv/www/mysite/public_html/python_folder> Options +ExecCGI AddHandler cgi-script .py Finish step:
<Directory /srv/www/mysite/public_html/python_folder> Options +ExecCGI AddHandler cgi-script .py
To configure apache2 to run python scipts https://www.linux.com/blog/configuring-apache2-run-python-scripts
How To Set Up an Apache, MySQL, and Python (LAMP) Server Without Frameworks on Ubuntu 14.04 https://www.digitalocean.com/community/tutorials/how-to-set-up-an-apache-mysql-and-python-lamp-server-without-frameworks-on-ubuntu-14-04