so, I install miniconda2.
Mapproxy should work with apache, but using mod_wsgi with miniconda2 is a bit complicated.
I am describing a rough procedure:
% cd /opt/mapproxy
% wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
% sh Miniconda2-latest-Linux-x86_64.sh
(answer questions, “yes”, “/opt/mapproxy/miniconda2”, “no”)
(answer questions, “yes”, “/opt/mapproxy/miniconda2”, “no”)
% miniconda2/bin/pip install mod_wsgi
% miniconda2/bin/pip install mapproxy
% miniconda2/bin/pip install mapproxy
% miniconda2/bin/mod_wsgi-express install-module
% vi /etc/httpd/conf/httpd.conf
LoadModule wsgi_module modules/mod_wsgi-py27.so
% chmod –R 755 /opt/mapproxy/miniconda2/
WSGIScriptAlias /mapproxy /opt/mapproxy/config.py
WSGIPythonHome /opt/mapproxy/miniconda2/
WSGIApplicationGroup %{GLOBAL}
WSGISocketPrefix /var/run/wsgi
WSGIDaemonProcess mysite python-path=/opt/mapproxy/miniconda2/lib/python2.7/site-packages
0 件のコメント:
コメントを投稿