Could you advise on installation to production.
To use this api with an apache web server, you need to install mod-wsgi.
Done
httpd -M | grep wsgi
Syntax OK
wsgi_module (shared)
In the contrib directory you will find a sample apache configuration which can be placed in the conf.d directory.
Done. Also copied all files to
/opt/restols
as mentioned in /opt/restlos/contrib/restlos-directory.
Then on next step.
You will also find a file called application.py, which have to be placed in the same directory as the executable python script.This will load the api as a wsgi application into the web server.
Err, didn't found it.
[andruss@serv restlos]# find /opt/restlos/ -name "application"
Then i head to to http://nagios.domain.net/restlos
And got 503 error
Inside apache error log
[Tue Aug 16 15:46:48 2016] [error] [client 192.168.1.222] (13)Permission denied: mod_wsgi (pid=19069): Unable to connect to WSGI daemon process 'restlos' on '/etc/httpd/logs/wsgi.19065.0.1.sock' after multiple attempts.
ls -lh /etc/httpd/logs/
srwx------ 1 apache root 0 Aug 16 16:06 wsgi.21577.0.1.sock
i.e is avalible '/etc/httpd/logs/wsgi.19065.0.1.sock' but it 0 bytes.
What permissions should be for /etc/httpd/logs/wsgi.19065.0.1.sock and should be restlos running in background ?
Could you advise on installation to production.
Done
Done. Also copied all files to
/opt/restols
as mentioned in /opt/restlos/contrib/restlos-directory.
Then on next step.
Err, didn't found it.
[andruss@serv restlos]# find /opt/restlos/ -name "application"
Then i head to to http://nagios.domain.net/restlos
And got 503 error
Inside apache error log
ls -lh /etc/httpd/logs/
i.e is avalible '/etc/httpd/logs/wsgi.19065.0.1.sock' but it 0 bytes.
What permissions should be for /etc/httpd/logs/wsgi.19065.0.1.sock and should be restlos running in background ?