Define not run. What documentation are you following?
Are you using: http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide Use that documentation if you aren't. Also suggest watching the talk: http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Conference_Presentations Few more comments below. On 24 August 2010 07:48, zevenwolf <[email protected]> wrote: > Hi Everyone, > > so I presume I have installed mod_wsgi correctly > > I am running apache2.2 and the module is appearing in the modules > folder > > when i run the hello world app it will not run > > <VirtualHost *:80> > DocumentRoot /var/www/vhosts/zevenwolf.com/httpdocs > ServerName www.zevenwolf.com > ServerAlias zevenwolf.com zevenrodriguez.com www.zevenrodriguez.com > zevenwithaz.com ww$ > ErrorLog logs/zevenwolf.com-error_log > CustomLog logs/zevenwolf.com-access_log common > <Directory /var/www/vhosts/zevenwolf.com/httpdocs> > AllowOverride All > </Directory> > ScriptAlias /cgi-bin/ /var/www/vhosts/zevenwolf.com/cgi-bin/ > > LoadModule wsgi_module modules/mod_wsgi.so > > WSGIScriptAlias /python_projects /var/www/vhosts/zevenwolf.com/ > python_projects.wsgi Does the file '/var/www/vhosts/zevenwolf.com/python_projects.wsgi' exist and have the hello world code in it? Down below you mention a hello.py file, so not even sure you have put code in right place. What URL are you using to try and access the WSGI application? > Alias /python_projects/static /var/www/vhosts/zevenwolf.com/ > python_projects/static > AddType text/html .py Why do you have the AddType. Not needed for mod_wsgi and bad practice in general for WSGI applications to not set content type and rely on Apache to set it. > <Directory /var/www/vhosts/zevenwolf.com/python_projects> > Order deny,allow > Allow from all > </Directory> > > </VirtualHost> > > and this is the code i am running in the hello.py with in the > directory > 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] Is this really called 'hello.py'? Where did you put this file? > what could i look at that will tell me that this is installed > correctly Did you compile from source code or are you trying to use a precompiled binary package from somewhere? Instructions at: http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide say how to tell if module loaded, presuming that Apache hasn't been modified not to show module startup strings in Apache error log. You can also run: httpd -M Ie., -M option to Apache, and it should list: wsgi_module (shared) Most important thing is to check your Apache error log. Also don't just say it doesn't work. Post what the error is in browser and for what URL that occurred, plus what the Apache error log said at same time. 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.
