I am also stuck in same issue . i installed mod_wsgi-4.6.4 by below command

yum install httpd-devel -y
./configure --with-python=/usr/local/bin/python2.7 
LDFLAGS="-R/usr/local/lib"
 make
 make install

my apache version is

bash-4.1# /etc/httpd/bin/apachectl -v
Server version: Apache/2.4.33 (Unix)
Server built:   Jun  7 2018 10:09:58

when i staritng apache it is giving me below error.

httpd: Syntax error on line 66 of /etc/httpd/conf/httpd.conf: Cannot load 
/usr/local/lib/python2.7/site-packages/mod_wsgi-4.6.4-py2.7-linux-x86_64.egg/mod_wsgi/server/mod_wsgi-py27.so
 
into server: 
/usr/local/lib/python2.7/site-packages/mod_wsgi-4.6.4-py2.7-linux-x86_64.egg/mod_wsgi/server/mod_wsgi-py27.so:
 
undefined symbol: ap_accept_lock_mech

is version compatibility issue ? 


On Saturday, August 16, 2014 at 9:26:25 AM UTC+5:30, Graham Dumpleton wrote:
>
>
> On 15/08/2014, at 11:54 PM, Philipp Zeuner <[email protected] 
> <javascript:>> wrote:
>
> I got stuck in the installation process of mod_wsgi on SLES 11 SP2.
>
> Unfortunately I had to break the dependencies for glibc and pythonlib to 
> compile apache2-mod_wsgi 3.4-2.12.1. Which was successful, but I guess very 
> rude to system core.
>
> I'm running *SLES 11 SP2 Linux SERVER 3.0.101-0.7.17-default #1 SMP Tue 
> Feb 4 13:24:49 UTC 2014 (90aac76) x86_64 x86_64 x86_64 GNU/Linux* on a 
> *Apache/2.2.12 
> (Linux/SUSE)*
>
> However, I've configured the mod_wsgi properly in the apache files and 
> after executing */etc/init.d/apache2 start* :
>
> Starting httpd2 (prefork) httpd2-prefork: Syntax error on line 117 of 
> /etc/apache2/httpd.conf: Syntax error on line 23 of 
> /etc/apache2/sysconfig.d/loadmodule.conf:        
> Cannot load /usr/lib64/apache2/mod_wsgi.so into server: 
> /usr/lib64/apache2/mod_wsgi.so: undefined symbol: ap_unixd_config
>
> I'm running out of ideas and I appreciate any new directions for 
> troubleshooting!
>
>
> Where did the mod_wsgi.so binary object come from?
>
> Is it from an installed binary distro package?
>
> Did you install it from source code?
>
> The problem is that the mod_wsgi.so appears to be for Apache 2.4, 
> as ap_unixd_config only appeared in Apache 2.3/2.4 and it is not in Apache 
> 2.2, where it was previously called unixd_config.
>
> So, you have either installed a binary mod_wsgi.so from the wrong Apache 
> version, or you have installed an Apache dev package (header files) for 
> Apache 2.4, even though you have Apache 2.2, and thus compiled mod_wsgi 
> from source code against wrong header files.
>
> Graham
>

-- 
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.

Reply via email to