From 4378405eea982cb3a42584d95767b5003675f611 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Sun, 29 Mar 2020 20:41:49 +0200 Subject: debugging and apache help --- www/apache-modified/apache2.conf | 3 +++ www/apache-modified/help.txt | 13 +++++++++++++ www/html/.htaccess | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 www/apache-modified/help.txt 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 # 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 ... diff --git a/www/html/.htaccess b/www/html/.htaccess index ff2ab4a..d074f91 100755 --- a/www/html/.htaccess +++ b/www/html/.htaccess @@ -1,5 +1,5 @@ AuthType Basic AuthName "restricted area" -AuthUserFile /var/www/html/ATS-Project/web/.htpasswd +AuthUserFile /var/www/.htpasswd require valid-user DirectoryIndex index.py -- cgit v1.2.3