watcher/doc/source/admin/apache-mod-wsgi.rst
Alexander Chadin c7ec186576 Adapt watcher documentation for new standards
This patch set makes the following changes:

 * Add index file to each subdirectory of doc/source
 * Update doc/source/index.rst with new links
 * Move content of install-guide to the doc/source/install
 * Minor changes

Depends-On: Ifc5512c0e2373cf3387e0e0498268eab092e52bb
Change-Id: Iecb4f60efb015a56b9b37331859848b287112842
2017-07-04 15:49:24 +03:00

1.4 KiB

Installing API behind mod_wsgi

  1. Install the Apache Service:

    Fedora 21/RHEL7/CentOS7:
      sudo yum install httpd
    
    Fedora 22 (or higher):
      sudo dnf install httpd
    
    Debian/Ubuntu:
      apt-get install apache2
  2. Copy etc/apache2/watcher.conf under the apache sites:

    Fedora/RHEL7/CentOS7:
      sudo cp etc/apache2/watcher /etc/httpd/conf.d/watcher.conf
    
    Debian/Ubuntu:
      sudo cp etc/apache2/watcher /etc/apache2/sites-available/watcher.conf
  3. Edit <apache-configuration-dir>/watcher.conf according to installation and environment.

    • Modify the WSGIDaemonProcess directive to set the user and group values to appropriate user on your server.
    • Modify the WSGIScriptAlias directive to point to the watcher/api/app.wsgi script.
    • Modify the Directory directive to set the path to the Watcher API code.
    • Modify the ErrorLog and CustomLog to redirect the logs to the right directory.
  4. Enable the apache watcher site and reload:

    Fedora/RHEL7/CentOS7:
      sudo systemctl reload httpd
    Debian/Ubuntu:

    sudo a2ensite watcher sudo service apache2 reload