You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FYI, I have also been spending quite a lot of time trying to build the mod_wsgi from source (from mod_wsgi-4.5.20.tar.gz). I don't know if I am doing those build attempts (there have been many) are correct or not, but mostly I end up with that same error.
I have also tried re-building Apache from source, to change the MPM to MPM worker, but end up with the same error (per the Subject), so I have restored my dev environment back to the original source-built Apache 2.4.25 and the yum installed mod_wsgi (which is still giving me the same error :)).
Any idea how I can get mod_wsgi working on this Apache?
Thanks,
Jim
The text was updated successfully, but these errors were encountered:
That is, ensure apxs from Apache version you want to use is in PATH. Ensure that Python version you want to use is in PATH, along with pip program from that version.
Run:
pip install mod_wsgi
If you are only doing development, you can at that point skip setting up system Apache and just use mod_wsgi-express start-server.
Hi,
I am trying to install mod_wsgi into an Apache 2.4.25 instance and when I try to start the Apache I am getting this error:
Cannot load /usr/lib64/httpd/modules/mod_wsgi.so into server: /usr/lib64/httpd/modules/mod_wsgi.so: undefined symbol: ap_accept_lock_mech
This Apache is built from source:
[root@apache1 bin]# ./httpd -V
Server version: Apache/2.4.25 (Unix)
Server built: Jan 29 2017 19:56:21
Server's Module Magic Number: 20120211:67
Server loaded: APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/apps/apache"
-D SUEXEC_BIN="/apps/apache/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
The OS is Centos 6.8 (64 bit). The original Python was 2.6.6, I believe, but I also have Python 3.6.3 built from source.
The mod_wsgi I currently have on the machine was installed using "yum install mod_wsgi" and is:
[root@apache1 bin]# rpm -qa | grep wsgi
mod_wsgi-3.2-7.el6.x86_64
Should that mod_wsgi work with the Apache 2.4.25?
FYI, I have also been spending quite a lot of time trying to build the mod_wsgi from source (from mod_wsgi-4.5.20.tar.gz). I don't know if I am doing those build attempts (there have been many) are correct or not, but mostly I end up with that same error.
I have also tried re-building Apache from source, to change the MPM to MPM worker, but end up with the same error (per the Subject), so I have restored my dev environment back to the original source-built Apache 2.4.25 and the yum installed mod_wsgi (which is still giving me the same error :)).
Any idea how I can get mod_wsgi working on this Apache?
Thanks,
Jim
The text was updated successfully, but these errors were encountered: