(faff) modify the wsgi.load script in /etc/apache2/mods-available to point to the same python as used by the ews_browser
(faff) modify the wsgi.load script in /etc/apache2/mods-available to point to the same python as used by the ews_browser
Enable the conda env for the project:
Enable the conda env for the project:
conda activate /home/conda_envs/ews_browser
you are probably still in the active environment from the previous step, you will need to be in the new browser_env with a user that has sudo privileges. If necessary, deactivate the existing env and reactivate with a sudo user:
@@ -277,6 +249,11 @@ put the above line as the text in:
...
@@ -277,6 +249,11 @@ put the above line as the text in:
This means that apache wsgi will use the version of python that is used by the app to which it is binding.
This means that apache wsgi will use the version of python that is used by the app to which it is binding.
.. admonition:: Note
There are config files in the ews-browser project (in gitlab) that point to this python environment. Make sure ews_browser_client_africa.conf and ews_browser_client_asia.conf have the correct python path
prepare certificates and passwords for apache:
prepare certificates and passwords for apache:
copy the default-ssl.conf file into /etc/apache2/sites_available. See notes on installing genuine certificates below (once the server is up and running).
copy the default-ssl.conf file into /etc/apache2/sites_available. See notes on installing genuine certificates below (once the server is up and running).
...
@@ -371,22 +348,25 @@ The RewriteEngine is set to “Off” when not redirecting
...
@@ -371,22 +348,25 @@ The RewriteEngine is set to “Off” when not redirecting
**modify the ews browser wsgi conf files to point to the html directory, rather than the code:**
**modify the ews browser wsgi conf files to point to the html directory, rather than the code:**
# IF THE SITE IS DOWN FOR MAINTENANCE, COMMENT THIS BLOCK IN AND THE ONE ABOVE OUT - IT WILL USE THE REDIRECT IN .HTACCESS TO DISPLAY THE MAINTENANCE MESSAGE
# IF THE SITE IS DOWN FOR MAINTENANCE, COMMENT THIS BLOCK IN ANF THE ONE ABOVE OUT - IT WILL USE THE REDIRECT IN .HTACCESS TO DISPLAY THE MAINTENENCE MESSAGE