Skip to content

Commit

Permalink
corrected apache conf settup
Browse files Browse the repository at this point in the history
  • Loading branch information
l-singh-biomsu authored Sep 2, 2024
1 parent 33842df commit 9923936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions system_setup/apache_setup/apache_setup.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
# please, run this file from histonedb directory

parentdir="$(dirname "$PWD")"
parentdir="$(dirname "$parentdir")"
sed -i 's#MY_PROJECT_DIRECTORY#'$parentdir'#g' wsgi.conf
sed -i 's#MY_PROJECT_DIRECTORY#'$parentdir'#g' system_setup/apache_setup/wsgi.conf

sudo cp -f wsgi.conf /etc/apache2/mods-available
sudo cp -f system_setup/apache_setup/wsgi.conf /etc/apache2/mods-available

sudo a2enconf wsgi
sudo service apache2 restart
1 change: 1 addition & 0 deletions system_setup/full_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ sudo sed -i '$a interactive_timeout = 31536000' /etc/mysql/mysql.conf.d/mysqld.c
echo 'System setup complete.'

# Python Requirements Setup
cd ../
virtualenv -p python3.7 venv_histdb_py37
source venv_histdb_py37/bin/activate
echo 'Virtualenv created and set to venv_histdb_py37.'
Expand Down

0 comments on commit 9923936

Please sign in to comment.