-
Notifications
You must be signed in to change notification settings - Fork 34
Apache
In order to install the Apache web server, use the YUM package manager:
yum install httpd httpd-devel
(NOTE: httpd-devel may be needed for python module 'mod_wgsi')
Check wsgi installation and Apache configuration.
## Checks good installation
mod_wsgi-express start-server
## This command outputs configuration line for module loading in system Apache.
mod_wsgi-express module-config
Edit Apache configuration file:
vim /etc/httpd/conf/httpd.conf
Append the following information at the bottom of the LoadModule block:
LoadModule wsgi_module "/srv/iSkyLIMS/virtualenv/lib/python3.6/site-packages/mod_wsgi/server/mod_wsgi-py36.cpython-36m-x86_64-linux-gnu.so"
Add the following lines at the end of the file:
WSGISocketPrefix /var/run/wsgi
WSGIScriptAlias / /srv/iSkyLIMS/iSkyLIMS/wsgi.py
WSGIPythonHome /srv/iSkyLIMS/virtualenv
WSGIPythonPath /srv/iSkyLIMS
<Directory /srv/iSkyLIMS/iSkyLIMS> ## This lines work for Apache 2.2 version. For 2.4 this sintaxix changes. Satisfy Any Allow from all
Alias /static /srv/iSkyLIMS/static <Directory /srv/iSkyLIMS/static>
Satisfy Any Allow from all Alias /documents /srv/iSkyLIMS/documents <Directory /srv/iSkyLIMS/documents>
Satisfy Any Allow from all
Start the httpd server:
service httpd start
Remark: SELINUX must be ‘disabled’