Discussion:
mod_wsgi not loading into Apache 2.4.12 with python 3.4.2 on RHEL 7 x86_64 (Maipo - 7.2) Virtual machine on VMWARE WORKSTATION 12 and httpd24 found under scl --list
(too old to reply)
Chanki Gogia
2016-05-08 17:15:40 UTC
Permalink
Hi All,

Please help ! I am pretty much tired after trying hard installing mod_wsgi
as a module into my Apache since last two weeks. Please help !

I have downloaded mod_wsgi by following official installation page
https://modwsgi.readthedocs.io/en/develop/user-guides/quick-installation-guide.html
with command :

pip
install https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.4.22

then in the same directory unpacked using:
tar xvfz mod_wsgi-X.Y.tar.gz

and configure command used as :
*./configure --with-apxs=/opt/rh/httpd24/root/usr/bin/apxs
--with-python=/opt/rh/rh-python34/root/usr/bin/python3.4m LD_RUN_PATH =
/opt/rh/rh-python34/root/lib64*

'*make'* gives one error on the first compiling file but other slo files
created successfully.
'make install' completes

I have added load module line in my config file
*'/opt/rh/httpd24/root/etc/httpd/conf/httpd.conf'* as:
*"LoadModule wsgi_module modules/mod_wsgi.so" *
Please do check the screenshot of "*mod_wsgi_make_install*" as that
contains path of installed module. I have tried entering that complete path
though :
*"LoadModule wsgi_module
/opt/rh/httpd24/root/usr/lib64/httpd/modules/mod_wsgi.so"*
but it didn't worked and giving error of:
*"httpd-scl-wrapper[4908]: httpd: Syntax error on line 57 of
/opt/rh/httpd24/root/etc/httpd/conf/httpd.conf: Cannot load
/opt/rh/httpd24/root/usr/lib64/httpd/modules/mod_wsgi.so into server:
libpython3.4m.so cannot open shared object file no such file or directory
while installing mod_wsgi"*
as attached in (service_Loading Image...)
Also I tried copying the module to the
'/opt/rh/httpd24/root/etc/httpd/conf/' path but it didn't worked too.

Please tell if I am doing something wrong as several other people tried too
but didn't find anything.
--
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 modwsgi+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
Graham Dumpleton
2016-05-08 21:11:39 UTC
Permalink
Post by Chanki Gogia
Hi All,
Please help ! I am pretty much tired after trying hard installing mod_wsgi as a module into my Apache since last two weeks. Please help !
pip install https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.4.22
tar xvfz mod_wsgi-X.Y.tar.gz
./configure --with-apxs=/opt/rh/httpd24/root/usr/bin/apxs --with-python=/opt/rh/rh-python34/root/usr/bin/python3.4m LD_RUN_PATH = /opt/rh/rh-python34/root/lib64
This is wrong. Should be:

./configure --with-apxs=/opt/rh/httpd24/root/usr/bin/apxs --with-python=/opt/rh/rh-python34/root/usr/bin/python3.4m

LD_RUN_PATH=/opt/rh/rh-python34/root/lib64 make

sudo make install

The LD_RUN_PATH variable is not passed as argument to configure.

It needs to be set in environment of the ‘make’ command.

That can be done on same line as make command as shown above.
Post by Chanki Gogia
'make' gives one error on the first compiling file but other slo files created successfully.
'make install' completes
"LoadModule wsgi_module modules/mod_wsgi.so"
"LoadModule wsgi_module /opt/rh/httpd24/root/usr/lib64/httpd/modules/mod_wsgi.so"
"httpd-scl-wrapper[4908]: httpd: Syntax error on line 57 of /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf: Cannot load /opt/rh/httpd24/root/usr/lib64/httpd/modules/mod_wsgi.so into server: libpython3.4m.so cannot open shared object file no such file or directory while installing mod_wsgi"
as attached in (service_httpd24-httpd_start.jpg)
Also I tried copying the module to the '/opt/rh/httpd24/root/etc/httpd/conf/' path but it didn't worked too.
Please tell if I am doing something wrong as several other people tried too but didn't find anything.
--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
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>.
<Loading Image...>
--
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 modwsgi+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
Chanki Gogia
2016-05-09 07:33:48 UTC
Permalink
Thanks,
I tried the above but again couldn't load module successfully. Same error.
If you could please have a look at attached file- mod_wsgi_make.jpg , I guess mod_wsgi.slo doesn't creates and failing with error mentioned in the image attached earlier(mod_wsgi_make.jpg)
--
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 modwsgi+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
Graham Dumpleton
2016-05-09 08:10:29 UTC
Permalink
Unless you started from fresh source code, forgot one important step.

Before you rerun configure/make, ensure you run:

make distclean

This will clear out previously compiled files. Without that it would have just reused the previous object which had been compiled.

Once you have done it all again, try doing the following:

LD_LIBRARY_PATH='' ldd src/server/.libs/mod_wsgi.so

from in the mod_wsgi source directory.

What does this output?

Do not send screen shots as images. Sending images is the quickest way to ensure people will not help you. Send as text instead.
Post by Chanki Gogia
Thanks,
I tried the above but again couldn't load module successfully. Same error.
If you could please have a look at attached file- mod_wsgi_make.jpg , I guess mod_wsgi.slo doesn't creates and failing with error mentioned in the image attached earlier(mod_wsgi_make.jpg)
--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit 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 modwsgi+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
Chanki Gogia
2016-05-09 14:28:04 UTC
Permalink
Hi Graham,

I apologize for using screenshots !
I had done that before with "make clean" , now had tried again with "make
distclean" but similar result.

Below is the complete first line of make, Last 3 lines are worth note :

/opt/rh/httpd24/root/usr/bin/apxs -c
-I/opt/rh/rh-python34/root/usr/include/python3.4m -DNDEBUG -D_GNU_SOURCE
-Wc,-g -Wc,-02 src/server/mod_wsgi.c src/server/wsgi_*.c
-L/opt/rh/rh-python34/root/usr/lib64
-L/opt/rh/rh-python34/root/usr/lib64/python3.4/config-3.4m -lpython3.4m
-lpthread -ldl -lutil -lm /usr/lib64/apr-1/build/libtool --silent
--mode::compile gcc -std:gnu99 -prefer-pic -02 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
-param::ssp-buffer-size::4 -grecord-gcc-sitches -m64 -mtune::generic
-DLINUX -D_REENTERANT -D_GNU_RESOURCE -pthread
–I/opt/rh/httpd24/root/usr/include/httpd –I/usr/include/apr-1
-I/usr/include/apr-1 -g -02
-I/opt/rh/rh-python34/root/usr/include/python3.4m -DNDEBUG -D_GNU_SOURCE
-c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c&& touch
src/server/mod_wsgi.slo
src/server/mod_wsgi.c: In function ‘wsgi_process_proxy_headers’:
src/server/mod_wsgi.c:12992:25: warning: variable ‘value’ set but not used
[-Wunused-but-set-variable]
const char *value = NULL;
After that some other files compile and it ends and then I used make install

LD_LIBRARY_PATH=ldd src/server/.libs/mod_wsgi.so
gives:
Segmentation fault (core dumped)

Thanks,
Chanki
Post by Graham Dumpleton
Unless you started from fresh source code, forgot one important step.
make distclean
This will clear out previously compiled files. Without that it would have
just reused the previous object which had been compiled.
LD_LIBRARY_PATH='' ldd src/server/.libs/mod_wsgi.so
from in the mod_wsgi source directory.
What does this output?
Do not send screen shots as images. Sending images is the quickest way to
ensure people will not help you. Send as text instead.
Post by Chanki Gogia
Thanks,
I tried the above but again couldn't load module successfully. Same
error.
Post by Chanki Gogia
If you could please have a look at attached file- mod_wsgi_make.jpg , I
guess mod_wsgi.slo doesn't creates and failing with error mentioned in the
image attached earlier(mod_wsgi_make.jpg)
Post by Chanki Gogia
--
You received this message because you are subscribed to the Google
Groups "modwsgi" group.
Post by Chanki Gogia
To unsubscribe from this group and stop receiving emails from it, send
<javascript:>.
Post by Chanki Gogia
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit 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 modwsgi+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
Graham Dumpleton
2016-05-09 22:07:55 UTC
Permalink
Post by Chanki Gogia
Hi Graham,
I apologize for using screenshots !
I had done that before with "make clean" , now had tried again with "make distclean" but similar result.
/opt/rh/httpd24/root/usr/bin/apxs -c -I/opt/rh/rh-python34/root/usr/include/python3.4m -DNDEBUG -D_GNU_SOURCE -Wc,-g -Wc,-02 src/server/mod_wsgi.c src/server/wsgi_*.c -L/opt/rh/rh-python34/root/usr/lib64 -L/opt/rh/rh-python34/root/usr/lib64/python3.4/config-3.4m -lpython3.4m -lpthread -ldl -lutil -lm /usr/lib64/apr-1/build/libtool --silent --mode::compile gcc -std:gnu99 -prefer-pic -02 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -param::ssp-buffer-size::4 -grecord-gcc-sitches -m64 -mtune::generic -DLINUX -D_REENTERANT -D_GNU_RESOURCE -pthread –I/opt/rh/httpd24/root/usr/include/httpd –I/usr/include/apr-1 -I/usr/include/apr-1 -g -02 -I/opt/rh/rh-python34/root/usr/include/python3.4m -DNDEBUG -D_GNU_SOURCE -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c&& touch src/server/mod_wsgi.slo
src/server/mod_wsgi.c:12992:25: warning: variable ‘value’ set but not used [-Wunused-but-set-variable]
const char *value = NULL;
After that some other files compile and it ends and then I used make install
LD_LIBRARY_PATH=ldd src/server/.libs/mod_wsgi.so
That isn’t the command I gave. It was:

LD_LIBRARY_PATH='' ldd src/server/.libs/mod_wsgi.so

Immediately after the ‘=‘ are two quotes to form an empty string for the variable. Alternatively run:

unset LD_LIBRARY_PATH
ldd src/server/.libs/mod_wsgi.so
Post by Chanki Gogia
Segmentation fault (core dumped)
Thanks,
Chanki
Unless you started from fresh source code, forgot one important step.
make distclean
This will clear out previously compiled files. Without that it would have just reused the previous object which had been compiled.
LD_LIBRARY_PATH='' ldd src/server/.libs/mod_wsgi.so
from in the mod_wsgi source directory.
What does this output?
Do not send screen shots as images. Sending images is the quickest way to ensure people will not help you. Send as text instead.
Post by Chanki Gogia
Thanks,
I tried the above but again couldn't load module successfully. Same error.
If you could please have a look at attached file- mod_wsgi_make.jpg , I guess mod_wsgi.slo doesn't creates and failing with error mentioned in the image attached earlier(mod_wsgi_make.jpg)
--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
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.
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 modwsgi+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
Chanki Gogia
2016-05-10 17:43:59 UTC
Permalink
Hi Graham,

The command
LD_LIBRARY_PATH='' ldd src/server/.libs/mod_wsgi.so
gives:
linux-vdso.so.1 => (0X00007ffcfd78d000)
libpython3.4m.so.rh-python34-1.0 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f934a5e9000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f934a3e5000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f934a1e2000)
libm.so.6 => /lib64/libm.so.1 (0x00007f9349edf000)
libc.so.6 => /lib64/libc.so.1 (0x00007f9349b1e000)
/lib64/ld-linux-x86-64.so.2 (0x00007f934aa53000)

Should I try :
$LD_LIBRARY_PATH = /opt/rh/rh-python34/root/lib64/

Acc.
to http://stackoverflow.com/questions/7880454/python-executable-not-finding-libpython-shared-library

Thanks,
Chanki
Post by Chanki Gogia
Hi Graham,
I apologize for using screenshots !
I had done that before with "make clean" , now had tried again with "make
distclean" but similar result.
/opt/rh/httpd24/root/usr/bin/apxs -c
-I/opt/rh/rh-python34/root/usr/include/python3.4m -DNDEBUG -D_GNU_SOURCE
-Wc,-g -Wc,-02 src/server/mod_wsgi.c src/server/wsgi_*.c
-L/opt/rh/rh-python34/root/usr/lib64
-L/opt/rh/rh-python34/root/usr/lib64/python3.4/config-3.4m -lpython3.4m
-lpthread -ldl -lutil -lm /usr/lib64/apr-1/build/libtool --silent
--mode::compile gcc -std:gnu99 -prefer-pic -02 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
-param::ssp-buffer-size::4 -grecord-gcc-sitches -m64 -mtune::generic
-DLINUX -D_REENTERANT -D_GNU_RESOURCE -pthread
–I/opt/rh/httpd24/root/usr/include/httpd –I/usr/include/apr-1
-I/usr/include/apr-1 -g -02
-I/opt/rh/rh-python34/root/usr/include/python3.4m -DNDEBUG -D_GNU_SOURCE
-c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c&& touch
src/server/mod_wsgi.slo
src/server/mod_wsgi.c:12992:25: warning: variable ‘value’ set but not
used [-Wunused-but-set-variable]
const char *value = NULL;
After that some other files compile and it ends and then I used make install
LD_LIBRARY_PATH=ldd src/server/.libs/mod_wsgi.so
LD_LIBRARY_PATH='' ldd src/server/.libs/mod_wsgi.so
Immediately after the ‘=‘ are two quotes to form an empty string for the
unset LD_LIBRARY_PATH
ldd src/server/.libs/mod_wsgi.so
Segmentation fault (core dumped)
Thanks,
Chanki
Post by Graham Dumpleton
Unless you started from fresh source code, forgot one important step.
make distclean
This will clear out previously compiled files. Without that it would have
just reused the previous object which had been compiled.
LD_LIBRARY_PATH='' ldd src/server/.libs/mod_wsgi.so
from in the mod_wsgi source directory.
What does this output?
Do not send screen shots as images. Sending images is the quickest way to
ensure people will not help you. Send as text instead.
Post by Chanki Gogia
Thanks,
I tried the above but again couldn't load module successfully. Same
error.
Post by Chanki Gogia
If you could please have a look at attached file- mod_wsgi_make.jpg , I
guess mod_wsgi.slo doesn't creates and failing with error mentioned in the
image attached earlier(mod_wsgi_make.jpg)
Post by Chanki Gogia
--
You received this message because you are subscribed to the Google
Groups "modwsgi" group.
Post by Chanki Gogia
To unsubscribe from this group and stop receiving emails from it, send
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit 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
.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit 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 modwsgi+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
Graham Dumpleton
2016-05-10 22:25:03 UTC
Permalink
That libpython3.4m.so doesn’t resolve indicated LD_RUN_PATH wasn’t set correctly when the build was done.

Can you make sure again that you ran the commands as:

make distclean
./configure --with-apxs=/opt/rh/httpd24/root/usr/bin/apxs --with-python=/opt/rh/rh-python34/root/usr/bin/python3.4m
LD_RUN_PATH=/opt/rh/rh-python34/root/lib64 make

Then run that ldd command again:

LD_LIBRARY_PATH='' ldd src/server/.libs/mod_wsgi.so

To confirm that the library is in the location, what do you get for:

ls -las /opt/rh/rh-python34/root/lib64

Also, what are the values of LDFLAGS and LDLIBS in the Makefile generated by configure step?

Graham
Post by Chanki Gogia
Hi Graham,
The command
LD_LIBRARY_PATH='' ldd src/server/.libs/mod_wsgi.so
linux-vdso.so.1 => (0X00007ffcfd78d000)
libpython3.4m.so.rh-python34-1.0 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f934a5e9000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f934a3e5000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f934a1e2000)
libm.so.6 => /lib64/libm.so.1 (0x00007f9349edf000)
libc.so.6 => /lib64/libc.so.1 (0x00007f9349b1e000)
/lib64/ld-linux-x86-64.so.2 (0x00007f934aa53000)
$LD_LIBRARY_PATH = /opt/rh/rh-python34/root/lib64/
Acc. to http://stackoverflow.com/questions/7880454/python-executable-not-finding-libpython-shared-library <http://stackoverflow.com/questions/7880454/python-executable-not-finding-libpython-shared-library>
Thanks,
Chanki
Post by Chanki Gogia
Hi Graham,
I apologize for using screenshots !
I had done that before with "make clean" , now had tried again with "make distclean" but similar result.
/opt/rh/httpd24/root/usr/bin/apxs -c -I/opt/rh/rh-python34/root/usr/include/python3.4m -DNDEBUG -D_GNU_SOURCE -Wc,-g -Wc,-02 src/server/mod_wsgi.c src/server/wsgi_*.c -L/opt/rh/rh-python34/root/usr/lib64 -L/opt/rh/rh-python34/root/usr/lib64/python3.4/config-3.4m -lpython3.4m -lpthread -ldl -lutil -lm /usr/lib64/apr-1/build/libtool --silent --mode::compile gcc -std:gnu99 -prefer-pic -02 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -param::ssp-buffer-size::4 -grecord-gcc-sitches -m64 -mtune::generic -DLINUX -D_REENTERANT -D_GNU_RESOURCE -pthread –I/opt/rh/httpd24/root/usr/include/httpd –I/usr/include/apr-1 -I/usr/include/apr-1 -g -02 -I/opt/rh/rh-python34/root/usr/include/python3.4m -DNDEBUG -D_GNU_SOURCE -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c&& touch src/server/mod_wsgi.slo
src/server/mod_wsgi.c:12992:25: warning: variable ‘value’ set but not used [-Wunused-but-set-variable]
const char *value = NULL;
After that some other files compile and it ends and then I used make install
LD_LIBRARY_PATH=ldd src/server/.libs/mod_wsgi.so
LD_LIBRARY_PATH='' ldd src/server/.libs/mod_wsgi.so
unset LD_LIBRARY_PATH
ldd src/server/.libs/mod_wsgi.so
Post by Chanki Gogia
Segmentation fault (core dumped)
Thanks,
Chanki
Unless you started from fresh source code, forgot one important step.
make distclean
This will clear out previously compiled files. Without that it would have just reused the previous object which had been compiled.
LD_LIBRARY_PATH='' ldd src/server/.libs/mod_wsgi.so
from in the mod_wsgi source directory.
What does this output?
Do not send screen shots as images. Sending images is the quickest way to ensure people will not help you. Send as text instead.
Post by Chanki Gogia
Thanks,
I tried the above but again couldn't load module successfully. Same error.
If you could please have a look at attached file- mod_wsgi_make.jpg , I guess mod_wsgi.slo doesn't creates and failing with error mentioned in the image attached earlier(mod_wsgi_make.jpg)
--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
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.
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.
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 modwsgi+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
Chanki Gogia
2016-05-12 11:09:48 UTC
Permalink
It had worked now. I have reinstalled python3.4.2, apache2.4.12 and mod_wsgi4.4.2 and again done similar steps and it worked.

Error logs contains mod_wsgi configured line

Thanks much for your help!!
--
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 modwsgi+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
Graham Dumpleton
2016-05-12 11:19:07 UTC
Permalink
Post by Chanki Gogia
It had worked now. I have reinstalled python3.4.2, apache2.4.12 and mod_wsgi4.4.2 and again done similar steps and it worked.
Error logs contains mod_wsgi configured line
I actually stumbled today across another way of possibly solving this whole problem of not finding the correct library. I can’t remember if I have seen this feature in Apache before and forgot, or if I have totally overlooked it until now.

Apache has a LoadFile directive which can be given a path to a loadable object file that can be force linked into Apache at startup, before any other Apache modules are loaded.

One can possibly say:

LoadFile /opt/rh/rh-python34/root/lib64/libpython3.4m.so.rh-python34-1.0

Would just need to check that loading by path name like this, is enough to satisfy the dynamic link loader or not. If it isn’t and wrong library would have been loaded, generally the first library loaded to define a symbol still wins. Although in this case the dynamic linker wasn’t finding the library, which is where not sure if this will work or not.

I will need to experiment with this some time or suggest it be tried the next time see someone with this sort of problem.

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 modwsgi+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
Loading...