Home > Cannot Load > Cannot Load Modules/mod_wsgi.so

Cannot Load Modules/mod_wsgi.so

I have checked the location usr/lib/apache2/modules/mod_wsgi.so-2.7 and this file is really present there. Class forcing as set forcing followed by truncation How are the functions used in cryptographic hash functions chosen? This scenario can arise in mod_wsgi due to a workaround in place to get around a bug in Apache related to generation of ‘100-continue' response. Why do languages require parenthesis around expressions when used with "if" and "while"? http://scriptkeeper.net/cannot-load/cannot-load-modules-mod-wsgi-so-into-server.html

A final alternative on some systems is to embed the directory to search for the Python shared library into the mod_wsgi Apache module itself. Tank-Fighting Alien Count trailing truths What was Stan Lee's character reading on the bus in Doctor Strange Can dispel magic end a darkness spell? 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 It is understood that the Python build process may not actually do this, so you may have to do it by hand. http://stackoverflow.com/questions/12075586/mod-wsgi-django-apache-failed-to-load-mod-wsgi-so-module-in-httpd-conf

more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Why did Michael Corleone not forgive his brother Fredo? "Carrie has arrived at the airport for two hours." - Is this sentence grammatically correct? when i run ls-l it showed in red color. If however the newer version of Python you wish to use is in a different location, for example under ‘/usr/local', it is possible that when Apache is started that it will

An example of the error messages you will see if the developer package is not installed are: mod_wsgi.c:113:20: error: Python.h: No such file or directory mod_wsgi.c:114:21: error: compile.h: No such file Adverb for "syntax" Why are password boxes always blanked out when other sensitive data isn't? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Thanks in advance.

If a Python shared library is used, this will not be a problem. SMS verification, is it secure? Lack Of Python Shared Library¶ In the optimal case, when mod_wsgi is compiled the resulting Apache module should be less than 250 Kbytes in size. see this here Ask Ubuntu works best with JavaScript enabled UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list.

The answer to your problem depends on which way you did it. For some systems the directory ‘/usr/local/lib' may also be searched, but this may depend on the directory having been explicitly added to the approrpiate system file listing the directories to be This is my pillow Did a thief think he could conceal his identity from security cameras by putting lemon juice on his face? If one supplier has delayed your project schedule should the other suppliers on the project be alerted to the new timeline?

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. http://askubuntu.com/questions/484183/apache-django-and-mod-wsgi UPDATE: I am updating my question to include Sylvain Pineau's susggestion. In short, you need to compile Python as a shared library in order for mod_wsgi to work. –gorus Mar 13 '15 at 21:03 add a comment| 1 Answer 1 active oldest 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

Undefined ‘forkpty' On Fedora 7¶ On Fedora 7, the provided binary version of Apache is not linked against the ‘libutil' system library. this contact form Do the IPA consonants /v/ and /w/ sound similar? This is because the version of the Python library embedded into the mod_wsgi Apache module will be older than the corresponding Python code modules and extension modules being used from the The actual error arises in this case because ‘libtool' would appear to be unable to generate a dynamically loadable module for the X86 64 bit architecture from a X86 32 bit

If ‘-enable-shared' was however not used and the Python library is therefore embedded into the actual mod_wsgi Apache module, then there is a risk of undefined behaviour. I can confirm that libpython2.7.so.1.0 is in /usr/local/lib. share|improve this answer edited Jun 18 '14 at 16:10 answered Jun 16 '14 at 18:14 Oli♦ 174k57437648 Thanks @Dan, I'll alter the muttering at the end of the answer. http://scriptkeeper.net/cannot-load/cannot-load-usr-libexec-apache2-mod-wsgi-so.html Try: /usr/sbin/ldcache -p It may not be in your PATH.

I setup Apache 2.4 x64 (httpd-2.4.10-win64-VC11.zip from Apache Lounge) Then I downloaded mod_wsgi binary from http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi - I took mod_wsgi‑3.5.ap24.win‑amd64‑py2.6.zip as Apache is x64 and my Python is 2.6. If I replace mod_wsgi.so with x86 version then I'll get other error about incorrect bitness, so the module seems to try be loaded. Browse other questions tagged server apache2 django or ask your own question.

you could try and symlink it to one of the lib directories in apache's library path, or you can add the directory where your libpython2.5.so resides and add that to apache's

Not the answer you're looking for? Why did the best potions master have greasy hair? Why do languages require parenthesis around expressions when used with "if" and "while"? Dynamic Query - System.QueryException: expecting a colon, found '.' more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us

Second is to see whether even as a normal user you can resolve the library correctly by running: ldd /etc/httpd/modules/mod_wsgi.so and see what it says. Teenage daughter refusing to go to school "Carrie has arrived at the airport for two hours." - Is this sentence grammatically correct? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Check This Out If this is not present then mod_wsgi is using a static Python library.

Simple Python job vacancies downloader If an image is rotated losslessly, why does the file size change? Okt 07:57 /usr/local/lib/libpython2.7.a 0 lrwxrwxrwx 1 root root 20 2. I'm not sure how to do this. 4. Program to check whether two strings are anagrams of each other Why are LEDs in my home unaffected by voltage drop?

Why aren't interactions between molecules of an ideal gas and walls of container negligible?