Apple had made it hard, or possibly impossible, to use third party Apache modules with the version of Apache it ships with the operating system in latest macOS. Any such binary modules need to be signed by a registered developer, or possibly using an ad-hoc signature. I don't know how to do ad-hoc signing and no one has offered a solution.
The only solution I know of right now is to use HomeBrew (https://brew.sh/ <https://brew.sh/>) to install Apache httpd and use that version instead of the Apple supplied one. Graham > On 11 Jan 2019, at 1:49 am, Patryk Maryn <[email protected]> wrote: > > Hello there, > I've seen many posts and tutorials about solving this problem but none of > them matches my case. > > My OS is Mojave 10.14. I've installed mod_wsgi 4.6.5 issuing pip install and > message after is following: > > Requirement already satisfied: mod_wsgi in > /anaconda3/lib/python3.7/site-packages (4.6.5) > > I've been advised to configure mod-wsgi manually and I've run: > > mod_wsgi-express module-config > > LoadFile "/anaconda3/lib/libpython3.7m.dylib" > > LoadModule wsgi_module > "/anaconda3/lib/python3.7/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m- > > > darwin.so" > > WSGIPythonHome "/anaconda3" > > > then I'm trying to configure mod_wsgi and put the code above in : > cd etc/apache2/ > sudo vi httpd.conf > > after running command: > > /usr/sbin/httpd -M > > I get message: > > Syntax error on line 71 of /private/etc/apache2/httpd.conf: Cannot load > /anaconda3/lib/libpython3.7m.dylib into server: > dlopen(/anaconda3/lib/libpython3.7m.dylib, 10): no suitable image found. Did > find:\n\t/anaconda3/lib/libpython3.7m.dylib: code signature in > (/anaconda3/lib/libpython3.7m.dylib) not valid for use in process using > Library Validation: mapped file has no cdhash, completely unsigned? Code has > to be at least ad-hoc signed.\n\t/anaconda3/lib/libpython3.7m.dylib: stat() > failed with errno=22 > > > Any help how I can fix it? > > > > > > > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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.
