2010/1/18 Panam <[email protected]>: > Hi all, > > I am trying to set up mod_wsgi to serve a trac application. Since I > was unsucessful, I tried a simple "Hello World" app and even that > wasn't successful. As I am fairly new to mod_wsgi I presume I just > miss a tiny piece to get it working. Unfortunately I do not get any > errors in the logs, the app just doesn't show up. > My configuration: > Windows Server 2003 x64 > Phyton 2.5 (win32) > Apache 2.2.11 (win32) > mod_wsgi-2.3 – Apache 2.2 / Python 2.5 > > the Directory structure is as follows > C:\ > '- Apache > '- Phyton > '- Test > '-apache > '-test.wsgi > > The www user has read access to Apache, Phyton and Test (+all > subdirectories). Additionally it has list access to C:\. > ------------------------------------------- > test.wsgi content (taken form > http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide): > ------------------------------------------- > #!C:\Python\python.exe > 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] > > ------------------------------------------- > section in httpd.conf (inspired by > http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide): > ------------------------------------------- > ... > LoadModule wsgi_module modules/mod_wsgi.so > ... > > WSGIScriptAlias /testWSGI "C:/Test/apache/test.wsgi" > > <Directory "C:/Test/apache"> > Order allow,deny > Allow from all > </Directory> > > After restarting apache and browsing to > http://www.myserver.org/testWSGI > it just returns > "Service Unavailable"
The mod_wsgi module can't in any circumstances generate this error on Windows. Have you validated that your Apache installation even works by trying to access a static file served out of the static document root? This more looks like a host name lookup problem with your installation rather than a problem with mod_wsgi. Graham > However, there is no indication of an error in apache/log/error.log > but just > [Sun Jan 17 15:37:35 2010] [notice] Parent: Received restart signal -- > Restarting the server. > [Sun Jan 17 15:37:35 2010] [notice] Child 55188: Exit event signaled. > Child process is ending. > [Sun Jan 17 15:37:35 2010] [info] Init: Seeding PRNG with 136 bytes of > entropy > [Sun Jan 17 15:37:35 2010] [info] Loading certificate & private key of > SSL-aware server > [Sun Jan 17 15:37:35 2010] [info] Init: Generating temporary RSA > private keys (512/1024 bits) > [Sun Jan 17 15:37:35 2010] [info] Init: Generating temporary DH > parameters (512/1024 bits) > [Sun Jan 17 15:37:35 2010] [info] Shared memory session cache > initialised > [Sun Jan 17 15:37:35 2010] [info] Init: Initializing (virtual) servers > for SSL > [Sun Jan 17 15:37:35 2010] [info] Configuring server for SSL protocol > [Sun Jan 17 15:37:35 2010] [info] mod_ssl/2.2.11 compiled against > Server: Apache/2.2.11, Library: OpenSSL/0.9.8i > [Sun Jan 17 15:37:35 2010] [warn] mod_wsgi: Compiled for Python/2.5. > [Sun Jan 17 15:37:35 2010] [warn] mod_wsgi: Runtime using Python/ > 2.5.2. > [Sun Jan 17 15:37:35 2010] [warn] mod_wsgi: Python module path 'C:\ > \WINDOWS\\system32\\python25.zip;C:\\Python\\Lib;C:\\Python\\DLLs;C:\ > \Python\\Lib\\lib-tk;;C:\\apache\\bin'. > [Sun Jan 17 15:37:35 2010] [info] mod_wsgi: Initializing Python. > [Sun Jan 17 15:37:35 2010] [info] Child 55188: Accept thread exiting. > [Sun Jan 17 15:37:36 2010] [notice] Digest: generating secret for > digest authentication ... > [Sun Jan 17 15:37:36 2010] [notice] Digest: done > [Sun Jan 17 15:37:36 2010] [notice] Apache/2.2.11 (Win32) DAV/2 > mod_ssl/2.2.11 OpenSSL/0.9.8i SVN/1.5.3 mod_wsgi/2.3 Python/2.5.2 PHP/ > 5.3.0 configured -- resuming normal operations > [Sun Jan 17 15:37:36 2010] [notice] Server built: Dec 10 2008 00:10:06 > [Sun Jan 17 15:37:36 2010] [notice] Parent: Created child process 1364 > [Sun Jan 17 15:37:36 2010] [info] Child 55188: Accept thread exiting. > [Sun Jan 17 15:37:36 2010] [info] Init: Seeding PRNG with 136 bytes of > entropy > [Sun Jan 17 15:37:36 2010] [notice] Child 55188: Released the start > mutex > [Sun Jan 17 15:37:36 2010] [info] Child 55188: 64 threads blocked on > the completion port > [Sun Jan 17 15:37:36 2010] [info] Loading certificate & private key of > SSL-aware server > [Sun Jan 17 15:37:36 2010] [info] Init: Generating temporary RSA > private keys (512/1024 bits) > [Sun Jan 17 15:37:36 2010] [info] Init: Generating temporary DH > parameters (512/1024 bits) > [Sun Jan 17 15:37:36 2010] [info] Init: Initializing (virtual) servers > for SSL > [Sun Jan 17 15:37:36 2010] [info] Configuring server for SSL protocol > [Sun Jan 17 15:37:36 2010] [info] mod_ssl/2.2.11 compiled against > Server: Apache/2.2.11, Library: OpenSSL/0.9.8i > [Sun Jan 17 15:37:36 2010] [info] Init: Seeding PRNG with 136 bytes of > entropy > [Sun Jan 17 15:37:36 2010] [info] Loading certificate & private key of > SSL-aware server > [Sun Jan 17 15:37:36 2010] [info] Init: Generating temporary RSA > private keys (512/1024 bits) > [Sun Jan 17 15:37:37 2010] [info] Init: Generating temporary DH > parameters (512/1024 bits) > [Sun Jan 17 15:37:37 2010] [info] Shared memory session cache > initialised > [Sun Jan 17 15:37:37 2010] [info] Init: Initializing (virtual) servers > for SSL > [Sun Jan 17 15:37:37 2010] [info] Configuring server for SSL protocol > [Sun Jan 17 15:37:37 2010] [info] mod_ssl/2.2.11 compiled against > Server: Apache/2.2.11, Library: OpenSSL/0.9.8i > [Sun Jan 17 15:37:37 2010] [warn] mod_wsgi: Compiled for Python/2.5. > [Sun Jan 17 15:37:37 2010] [warn] mod_wsgi: Runtime using Python/ > 2.5.2. > [Sun Jan 17 15:37:37 2010] [warn] mod_wsgi: Python module path 'C:\ > \WINDOWS\\system32\\python25.zip;C:\\Python\\Lib;C:\\Python\\DLLs;C:\ > \Python\\Lib\\lib-tk;;C:\\apache\\bin'. > [Sun Jan 17 15:37:37 2010] [info] mod_wsgi: Initializing Python. > [Sun Jan 17 15:37:37 2010] [notice] Child 55188: All worker threads > have exited. > [Sun Jan 17 15:37:37 2010] [info] mod_wsgi (pid=55188): Cleanup > interpreter ''. > [Sun Jan 17 15:37:37 2010] [info] mod_wsgi (pid=55188): Terminating > Python. > [Sun Jan 17 15:37:37 2010] [notice] Child 55188: Child process is > exiting > [Sun Jan 17 15:37:37 2010] [notice] Digest: generating secret for > digest authentication ... > [Sun Jan 17 15:37:37 2010] [notice] Digest: done > [Sun Jan 17 15:37:37 2010] [notice] Child 1364: Child process is > running > [Sun Jan 17 15:37:37 2010] [info] Parent: Duplicating socket 308 and > sending it to child process 1364 > [Sun Jan 17 15:37:37 2010] [info] Parent: Duplicating socket 304 and > sending it to child process 1364 > [Sun Jan 17 15:37:37 2010] [info] mod_wsgi (pid=1364): Attach > interpreter ''. > [Sun Jan 17 15:37:37 2010] [notice] Child 1364: Acquired the start > mutex. > [Sun Jan 17 15:37:37 2010] [notice] Child 1364: Starting 64 worker > threads. > [Sun Jan 17 15:37:37 2010] [notice] Child 1364: Starting thread to > listen on port 443. > [Sun Jan 17 15:37:37 2010] [notice] Child 1364: Starting thread to > listen on port 86. > > What else could i try to get more information or to get it working? > Thanks in advance > panam > > -- > 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. > > > >
-- 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.
