Alternatively, the problem is due to ‘libtool' on this platform not being able to create a loadable module from a X86 64 bit static library in all cases. share|improve this answer edited May 12 '14 at 13:35 answered May 12 '14 at 13:13 Sylvain Pineau 39k1173114 python 2.7 is already installed. I have checked the location usr/lib/apache2/modules/mod_wsgi.so-2.7 and this file is really present there. When this occurs, if under ‘/usr' there was no Python installation of the same version number as Python which should be used, then normally: 'import site' failed; use -v for traceback http://culturahq.com/cannot-load/cannot-load-etc-apache2-modules-mod-dav-svn-so.html
If using a customised Apache installation, such as on Red Hat, the ‘envvars' file may not exist. That management command is actually just a convenience command for running mod_wsgi-express and it gets used in production. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name If an image is rotated losslessly, why does the file size change? http://askubuntu.com/questions/484183/apache-django-and-mod-wsgi
On a Linux system this need to perform the address relocations at runtime will immediately cause each Apache child process to bloat out in size by between 1 and 2MB. How do fonts work in LaTeX? If a Python shared library is used, this will not be a problem. Why are LEDs in my home unaffected by voltage drop?
This can occur because the Python library when initialised determines where the Python installation resides by looking through directories specified in the ‘PATH' environment variable for the ‘python' executable and using luckydonald commented Nov 2, 2015 [[email protected] ~]$ ls /usr/local/bin/python3.5* /usr/local/bin/python3.5 /usr/local/bin/python3.5m-config /usr/local/bin/python3.5m [[email protected] ~]$ /usr/local/lib/python* python2.7/ python3.5/ [[email protected] ~]$ ldd /etc/httpd/modules/mod_wsgi.so linux-vdso.so.1 => (0x00007ffde7a7f000) libpython3.5m.so.1.0 => not found libpthread.so.0 => /lib64/libpthread.so.0 On 1941 Dec 7, could Japan have destroyed the Panama Canal instead of Pearl Harbor in a surprise attack? The warning is indicating that a newer version of Python is now being used than what mod_wsgi was originally compiled for.
Please help. http://stackoverflow.com/questions/12075586/mod-wsgi-django-apache-failed-to-load-mod-wsgi-so-module-in-httpd-conf ImportError: No module named os.. If this is not present then mod_wsgi is using a static Python library. Unfortunately, it looks like some Linux distributions, eg.
Why do languages require parenthesis around expressions when used with "if" and "while"? http://culturahq.com/cannot-load/cannot-load-etc-apache2-modules-mod-access-so.html How can a Cleric be proficient in warhammers? For example: import sys def application(environ, start_response): status = '200 OK' output = 'Hello World!' response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))] start_response(status, response_headers) print >> sys.stderr, 'sys.prefix = %s' % repr(sys.prefix) Hot Network Questions Sites: Disneyland vs Disneyworld Port fee transparency Can clients learn their time zone on a network configured using RA?
It still provides all the security and stability of Apache and so know of no reason it cannot be used in production. If you run python -V on your system, see what version(s) you have installed and try to find a mod_wsgi built against that version (python will output something like 2.7.3, which To workaround the problem, modify the ‘Makefile' for mod_wsgi and change the value of ‘CFLAGS' to: CFLAGS = -Wc,-fno-stack-protector Perform a ‘clean' in the directory and then rebuild and reinstall the his comment is here How to make my logo color look the same in Web & Print?
ACTUAL: # aptitude install libapache2-mod-wsgi Selecting previously deselected package libapache2-mod-wsgi. (Reading database ... 21593 files and directories currently installed.) Unpacking libapache2-mod-wsgi (from .../libapache2-mod-wsgi_2.3-1build1_i386.deb) ... Sites: Disneyland vs Disneyworld Why did Michael Corleone not forgive his brother Fredo? "Carrie has arrived at the airport for two hours." - Is this sentence grammatically correct? SUSE, accidentally released Apache binary packages with this mode enabled by default.
Why is Professor Lewin correct regarding dimensional analysis, and I'm not? asked 4 years ago viewed 3607 times active 4 years ago Upcoming Events 2016 Community Moderator Election ends Nov 22 Linked 79 Python executable not finding libpython shared library Related 3Apache Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the when i run ls-l it showed in red color.
Draw a hollow square of # with given width Antonym for Nourish Tank-Fighting Alien Is there a word for turning something into a competition? Tank-Fighting Alien A guy scammed me, but he gave me a bank account number & routing number. Not the answer you're looking for? weblink An alternative method which may work is to edit the ‘envvars' file, if it exists and is used, located in the same directory as the Apache ‘httpd' executable, or the Apache
On a Linux distribution where binary Python packages are split into a runtime package and a developer package, the developer package is often not installed by default. Good luck with your web development –Sylvain Pineau May 12 '14 at 13:34 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using django mod-python share|improve this question asked Aug 30 '12 at 13:57 Kreshnik 12027 Which Python version are you running python -V? –quanta Aug 30 '12 at 15:22 When doing this, it is preferable, and may actually be necessary, to ensure that the ‘-enable-shared' option is provided to the ‘configure' script for Python when it is being compiled and
How to make figure bigger in subfigures when width? Why is this C++ code faster than my hand-written assembly for testing the Collatz conjecture? mod_wsgi.c:123:2: error: #error Sorry, mod_wsgi requires that Python supporting thread. Multiple Python Versions¶ Where there are multiple versions of Python installed on a system and it is necessary to ensure that a specific version is used, the ‘-with-python' option can be
How should horizontal dashboard numbers react on a responsive page? The error in this situation will be similar to: error while loading shared libraries: libpython2.4.so.1.0: \ cannot open shared object file: No such file or directory A number of alternatives exist Update: I have reinstalled python 2.7. How to decline a postdoc interview if there is some possible future collaboration?
Count trailing truths Hyper Derivative definition. Did you install this Python installation just for doing this, or has it been installed for a while and only using it for this now? What was Stan Lee's character reading on the bus in Doctor Strange I changed one method signature and broke 25,000 other classes.