Installing Karbor API with mod_wsgi¶
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
Copy
etc/apache2/apache-karbor-api.confunder the apache sitesFedora/RHEL7/CentOS7:
sudo cp etc/apache2/apache-karbor-api.conf /etc/httpd/conf.d/apache-karbor-api.conf
Debian/Ubuntu:
sudo cp etc/apache2/apache-karbor-api.conf /etc/apache2/sites-available/apache-karbor-api.conf
Edit
apache-karbor-api.confaccording to installation and environment.Modify the
WSGIDaemonProcessdirective to set theuserandgroupvalues to appropriate user on your server.Modify the
WSGIScriptAliasdirective to point to the %KARBOR_BIN_DIR%/karbor-wsgi script.Modify the
Directorydirective to set the path to the Karbor API code.Modify the
ErrorLog and CustomLogto redirect the logs to the right directory.
Enable the apache watcher site and reload
Fedora/RHEL7/CentOS7:
sudo systemctl reload httpd
Debian/Ubuntu:
sudo a2ensite apache-karbor-api sudo apache2ctl -k restart