Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deployment documentation #44

Open
tonyyzy opened this issue Aug 2, 2019 · 0 comments
Open

Update deployment documentation #44

tonyyzy opened this issue Aug 2, 2019 · 0 comments

Comments

@tonyyzy
Copy link

tonyyzy commented Aug 2, 2019

Since I had to go through a few hurdles to setup mdsrv with apache2 on my mac, I thought it would be useful to document the process and may contribute to a documentation update.

Setup on MacOS Mojave (10.14.6) with HomeBrew and conda on python3.6 (don't think 3.7 is supported yet? possibly due to async?)

  • It is hopeless to install mod_wsgi on apple's apache. Need to install apache/httpd via brew
    https://tecadmin.net/install-apache-macos-homebrew/
    refer to the first bit for installation

  • Under a conda environment, use pip to install mod_wsgi then mod_wsgi-express install-module. This command will print three lines to the terminal, copy the three lines to the end of the httpd.conf file, for apache to load mod_wsgi module. The location depends on where you installed httpd, likely to be /usr/local/etc/httpd

  • Follow http://nglviewer.org/mdsrv/deployment.html to put the four files into the correct location (mdsrv.conf, mdsrv.html, mdsrv.wsgi, app.cfg).

  • The mdsrv.conf needs a bit modification before operational:

    • Add a new section that directs to the /var/www/html directory
      DocumentRoot /var/www/html
      <Directory /var/www/html>
          Options Indexes FollowSymLinks
          AllowOverride All
          Require all granted
      </Directory>
      
    • For apache 2.4, the original apache.conf file's permission part needs to be replaces
      Replace
         Order deny,allow
         Allow from all
      
      with
         Require all granted
      
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant