pip install mod_wsgi-express left out mod_ssl.so

246 views
Skip to first unread message

DougE

unread,
Oct 12, 2015, 12:49:08 AM10/12/15
to modwsgi
httpd (mod_wsgi-express): Syntax error on line 316 of /etc/mod_wsgi-express-80/httpd.conf: Cannot load /usr/lib64/python2.7/site-packages/md_wsgi_packages/httpd/modules/mod_ssl.so into server: /usr/lib64/python2.7/site-packages/mod_wsgi_packages/httpd/modules/mod_ssl.so: undefined symbol: ap_map_http_request_error

I tried linking it to /usr/lib64/httpd/modules/mod_ssl.so but that does not seem to work.

I am on fedora 22, and apache -v 2.4.1

 python manage.py runmodwsgi --version returned 1.8.4 but that sounds like django

python manage.py runmodwsgi --setup-only --port=80 --https-only \
    --hsts-policy=3600 --https-port=443 --user apache --group apache \
    --server-root=/etc/mod_wsgi-express-80 \
    --ssl-certificate-file=/etc/ssl/certs/yourhelpdesk.crt \
    --ssl-certificate-key-file=/etc/ssl/certs/yourhelpdesk.key \
    --document-root=/usr/local/libexec/yourhelpdesk_us \
    --host=192.168.0.7 \
    --server-name=yourhelpdesk.us --allow-localhost

apologies in advance if I am doing something stupid

Graham Dumpleton

unread,
Oct 12, 2015, 1:07:17 AM10/12/15
to mod...@googlegroups.com
I would have expected that Fedora 22 would have had a more recent version of Apache than 2.4.1. Can you ensure you have the most up to date Apache package for Fedora installed.

Also, it seems you aren’t using the system Apache anyway, but have pip installed mod_wsgi-httpd package as well.

I would suggest:

pip uninstall mod_wsgi
pip uninstall mod_wsgi-httpd

and then try:

pip install mod_wsgi

so that it just uses the system wide Apache.

If that fails because of missing headers for Apache, make sure you have the appropriate ‘devel’ package for Apache installed.

If still doesn’t work, only then do:

pip uninstall mod_wsgi
pip install -U mod_wsgi-httpd
pip install mod_wsgi

which would install the pip installable Apache provided by mod_wsgi-httpd, before then installing mod_wsgi.

FWIW, unless you have a specific need, setting ‘—host’ option to an IP address looks very strange. Normally that option wouldn’t be required.

Graham

Reply all
Reply to author
Forward
0 new messages