diff options
Diffstat (limited to 'www/apache-modified')
-rwxr-xr-x | www/apache-modified/apache2.conf | 3 | ||||
-rw-r--r-- | www/apache-modified/help.txt | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/www/apache-modified/apache2.conf b/www/apache-modified/apache2.conf index c1b9b89..3bdb180 100755 --- a/www/apache-modified/apache2.conf +++ b/www/apache-modified/apache2.conf @@ -171,6 +171,9 @@ Include ports.conf Options Indexes FollowSymLinks AllowOverride All Require all granted + AddHandler mod_python .py + PythonHandler mod_python.publisher + PythonDebug On </Directory> #<Directory /srv/> diff --git a/www/apache-modified/help.txt b/www/apache-modified/help.txt new file mode 100644 index 0000000..80b10ff --- /dev/null +++ b/www/apache-modified/help.txt @@ -0,0 +1,13 @@ +#pour felix + +#first, you have to install apache2 (server), mod_python (to build html via python) and python-psycopg2 (to use psql) : +apt install apache2 libapache2-mod-python python-psycopg2 + +#replace the actual /var/www by our ATS-Project/www +cp -r /root/ATS-Project/www /var/ + +#give the x rights on the .py files +chmod +x /var/www/html *.py + +#replace the actual /etc/apache2/apache2.conf by our ATS-Project/www/apache-modified/apache2.conf +cp -r ... |