On 19 March 2010 16:56, mgeary <[email protected]> wrote:
> hi folks,
>
> i've installed mod_wsgi several times on several servers, but this is
> the first time on CentOS, and i'm having problems. i've got a dummy
> wsgi script in place:
>
> import socket
>
> 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)
>        return [output]
>
>
> but i'm getting "Exception occurred processing WSGI script" errors,
> but no further details. My apache error log just has:
>
> [Thu Mar 18 23:46:17 2010] [error] [client x.x.x.x] mod_wsgi
> (pid=3599): Target WSGI script '/path/to/my/file.wsgi' cannot be
> loaded as Python module.
> [Thu Mar 18 23:46:17 2010] [error] [client x.x.x.x] mod_wsgi
> (pid=3599): Exception occurred processing WSGI script '/path/to/my/
> file.wsgi'.
>
> I'd really appreciate any help in debugging this.

Take out:

  import socket

Do you still get an error?

What version of mod_wsgi are you using?

Is this with embedded mode or daemon mode?

Is this within a VirtualHost? If yes, are you checking main Apache
error log as well as that of VirtualHost?

Post the configuration you are using in Apache to configure mod_wsgi
to run script.

Are you loading mod_python in the same Apache instance?

Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to