Hi!
In our rather astronomy collaboration we are using mod_wsgi to host some of our django-based webapplications. Currently we are in the process of updating to the latest version (mod_wsgi 4.5.7, mod_wsgi 2.4.23.1). Here I encounter some problems: For scientific integrity reasons we have our own package management system (eups) with our own distributed version of python (2.7.9). mod_wsgi (and mod_wsgi-httpd) has to be installed through this package management system and against this python version. Our substrate os for webapplications (not all platforms need to be covered here) is typically CentOS7. This actually worked fine for mod_wsgi 4.4.13 and mod_wsgi-httpd 2.4.12.6. I cannot get the latest version to work. First, it would be helpful to get general advice if we do anything unreasonable overall. Here is how we proceed. 1. install python 2.7.9 through our package management system. setup the paths to use our versions. 2. i downloaded with 'pip download' the source code for the mod_wsgi and the mod_wsgi-httpd package. we distribute them through a fileserver. 3. we download these tars to the target machine (centos7). 4. we install mod_wsgi-httpd first, basically using python setup.py build and then install with our prefix 5. we set some according CFLAGS and then install mod_wsgi through python setup.py build and install (prepending configure (setting --with-apxs accordingly), make was not successful either) Please find the build script below. Does this make sense overall? Now, this does not work. Even though apparently mod_wsgi-httpd builds correctly i suspect that we actually already there create a / the problem. Here is the build log: http://desbuild.cosmology.illinois.edu/eeups/webservice/dashboard/products/modWSGI/4.5.7%2B0/desbuild/build/build.log Any hints are very much appreciated! Thanks, Michael build script: --------------------------------------------------------------- #!/usr/bin/env bash wget http://desbuild.cosmology.illinois.edu/eeups/webservice/resources/modWSGIhttpd/modWSGIhttpd-2.4.23.1.tar.gz tar xzf modWSGIhttpd-2.4.23.1.tar.gz cd modWSGIhttpd-2.4.23.1 python setup.py build mkdir -p ${PRODUCT_DIR}/lib/python2.7/site-packages export PYTHONPATH=$PRODUCT_DIR/lib/python2.7/site-packages:$PYTHONPATH python setup.py install --prefix=$PRODUCT_DIR cd .. # now we take care of the modWSGI / mod_wsgi installation wget $EXTERNAL/$PRODUCT/$PRODUCT-$VERSION.tar.gz tar xzf $PRODUCT-$VERSION.tar.gz cd $PRODUCT-$VERSION export CFLAGS="-I${PRODUCT_DIR}/lib/python2.7/site-packages/mod_wsgi_httpd-2.4.23.1-py2.7-linux-x86_64.egg/mod_wsgi_packages/httpd/include" export CFLAGS="$CFLAGS -I${PRODUCT_DIR}/lib/python2.7/site-packages/mod_wsgi_httpd-2.4.23.1-py2.7-linux-x86_64.egg/mod_wsgi_packages/httpd/include/apr-1" export PATH=${PRODUCT_DIR}/bin:${PATH} export PATH=${PRODUCT_DIR}/lib/python2.7/site-packages/mod_wsgi_httpd-2.4.23.1-py2.7-linux-x86_64.egg/mod_wsgi_packages/httpd/bin:${PATH} #./configure --with-apxs=${PRODUCT_DIR}//lib/python2.7/site-packages/mod_wsgi_httpd-2.4.23.1-py2.7-linux-x86_64.egg/mod_wsgi_packages/httpd/bin/apxs #make python setup.py build python setup.py install --prefix=$PRODUCT_DIR -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
