Eavis / web_app

0 stars 0 forks source link

try python on apache2 #20

Open Eavis opened 7 years ago

Eavis commented 7 years ago

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

Eavis commented 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:

Eavis commented 7 years ago

<Directory /srv/www/mysite/public_html/python_folder> Options +ExecCGI AddHandler cgi-script .py