" The specified module could not be found." error

2,079 views
Skip to first unread message

online.se...@gmail.com

unread,
Oct 27, 2009, 7:44:09 PM10/27/09
to mod...@googlegroups.com
I got thie message when i started apache service

____________________________________________________
The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 128 of C:/data/apache/conf/httpd.conf: Cannot load C:/data/apache/modules/mod_wsgi.so into server: The specified module could not be found. .
_____________________________________________________

Not sure what went wrong, I do have
"C:/data/apache/modules/mod_wsgi.so" I downloaded
mod_wsgi-win32-ap22py26-2.6.so and changed name to mod_wsgi.so and put
to C:/data/apache/modules/

Thanks for any help.

Graham Dumpleton

unread,
Oct 27, 2009, 9:57:01 PM10/27/09
to mod...@googlegroups.com
2009/10/28 online.se...@gmail.com <online.se...@gmail.com>:

How did you copy the file into place?

The Apache service runs as a special user and depending on how file
was copied into place, it may not have the right permissions and
ownership such that that user can see/read the file.

I have seen this problem when copying file into place with cygwin
command line tools. Was necessary to change group ownership of file
and permissions for it to work.

Graham

online.se...@gmail.com

unread,
Oct 28, 2009, 8:50:59 PM10/28/09
to mod...@googlegroups.com
thanks Graham,

I have tried a few things:

*)unintalled and reinstalled apache a few times.
*)changed the name of mod_wsgi.so and property/permission a few times.


still no luck...

Graham Dumpleton

unread,
Oct 28, 2009, 10:31:14 PM10/28/09
to mod...@googlegroups.com
The next thing to double check then is that you installed Python for
all users on system and not just yourself.

Apache on Windows does appear to give error messages which point at
the wrong problem as a cause. Thus, the issue may be that it finds and
attempts to load the module, but cant find the DLL for the Python
library because it wasn't installed machine wide and only for specific
user.

Also just verify that you are installing Apache 2.2 and Python 2.6 as
that mod_wsgi binary requires.

Graham

2009/10/29 online.se...@gmail.com <online.se...@gmail.com>:

online.se...@gmail.com

unread,
Oct 29, 2009, 1:56:48 PM10/29/09
to mod...@googlegroups.com
Thanks

It was version issue. i had python25 installed. I updated to python26.
things are fine now.



On Wed, Oct 28, 2009 at 7:31 PM, Graham Dumpleton

Graham Dumpleton

unread,
Nov 14, 2012, 5:24:11 PM11/14/12
to modwsgi
Can you provide the exact error message you are getting so can confirm if is the same?

Another possibility is that you don't have DLLs for the required SDK installed. I don't remember the details of this one.

Also, because of Windows explorer API not necessarily showing extensions, have seen cases where people manage to not name the file properly. So double check the name of the file in the file system actually does match what is trying to be loaded. Use an absolute path if need be. Also make sure the ownership/permissions of the file is such that the user that the Apache service runs as can read it.

Graham


On 14 November 2012 22:22, Adnan Hussain <adnans...@gmail.com> wrote:
Im getting the same issue but i have python 2.7 installed and i downloaded the "mod_wsgi-win32-ap22py27-3.3.so" binary.

I tried all the things above also but im getting the exact same error.

Btw, im doing all this on windows 7 64bit, but i've installed apache 2.22 32 bit.

--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To view this discussion on the web visit https://groups.google.com/d/msg/modwsgi/-/Jbpb1Q1pfBcJ.
To post to this group, send email to mod...@googlegroups.com.
To unsubscribe from this group, send email to modwsgi+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.

Graham Dumpleton

unread,
Apr 30, 2013, 6:31:06 PM4/30/13
to mod...@googlegroups.com
Please note that it is not a good idea in forums to followup to really old posts and say you have the same problem. Always create a fresh post and explain your specific situation from the start with all information about errors, what you have tried etc. You may think it is the same problem, but in practice it often isn't, else the solutions given would have solved your problem. Anyway, see notes below.

On 01/05/2013, at 5:25 AM, Omi Chiba <ochi...@gmail.com> wrote:

I'm in the same situaltion as Adnan.

Windows Server 2012 64bit
Python 2.7.4 32bit

This precompiled module if for Apache 2.2.

Apache 2.4.4 win 32 coming with Uniform Server

You are using Apache 2.4.

You cannot mix them for a start.

Go to:


Get mod_wsgi from there and use the Apache distribution they say it is compiled against.

Graham

On Wednesday, November 14, 2012 5:22:49 AM UTC-6, Adnan Hussain wrote:
Im getting the same issue but i have python 2.7 installed and i downloaded the "mod_wsgi-win32-ap22py27-3.3.so" binary.

I tried all the things above also but im getting the exact same error.

Btw, im doing all this on windows 7 64bit, but i've installed apache 2.22 32 bit.

On Thursday, October 29, 2009 9:56:48 PM UTC+4, weiwei wrote:
--
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+u...@googlegroups.com.

To post to this group, send email to mod...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages