Closed GoogleCodeExporter closed 9 years ago
What is in wsgi.py?
Try with a WGSI hello world script.
http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide#WSGI_Application_S
cript_File
If that works, then read:
http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Python_Simplified_GIL_St
ate_API
and set WSGIApplicationGroup as described.
Original comment by Graham.Dumpleton@gmail.com
on 31 Oct 2012 at 9:50
Infact My WSGI file is for Hello World.
import sys
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)
print >> sys.stderr, 'sys.prefix = %s' % repr(sys.prefix)
print >> sys.stderr, 'sys.path = %s' % repr(sys.path)
return [output]
Original comment by m.khurra...@gmail.com
on 1 Nov 2012 at 6:41
it seems like the problem is here
[Wed Oct 31 19:14:24 2012] [notice] Parent: child process exited with status
3221225477 -- Restarting.
Thanks
Original comment by m.khurra...@gmail.com
on 1 Nov 2012 at 6:47
We need to go back and check fundamentals then.
Do you only have one Python installation on your system?
Was the Python installation installed for all users and not just the user that
installed it?
What other Apache modules are you loading? Are you loading mod_php?
Original comment by Graham.Dumpleton@gmail.com
on 1 Nov 2012 at 9:51
Python 2.7 was installed on my machine, and Iwas using pre complied mod_wsgi.so
That was working fine with Apache2.2 and Django
Than I need to run Python 2.4
So I un-installed 2.7 and installed 2.4
Updated PATH variable to point to 2.4
When I open command prompt and type Python, its loading python 2.4
and django also working from wihtin command prompt
Python was installed for all users
I am not using mod_php, below is the apache server signature incase it may be
usefull
Apache/2.2.10 (Win32) mod_wsgi/3.4 Python/2.4.3 Server at server Port 80
List of loaded modules
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule status_module modules/mod_status.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule wsgi_module modules/mod_wsgi.so
Thanks
Original comment by m.khurra...@gmail.com
on 1 Nov 2012 at 10:03
To be able to build Python extensions, including mod_wsgi, with Python 2.4 and
have them work properly, you likely would need Visual Studio 2003.
I am guessing that Microsoft Visual Studio 8 is not that and is a newer
compiler so probably cannot be used.
Original comment by Graham.Dumpleton@gmail.com
on 1 Nov 2012 at 10:14
Microsoft Visual Studio 8 is 2005 Version
Where can I find Visual Studio 2003.
Do you have any download link
Original comment by m.khurra...@gmail.com
on 1 Nov 2012 at 10:24
I know of no where that the compiler itself can be download.
Best you might do is send an email to mod_wsgi mailing list to see if someone
already has a precompiled mod_wsgi for Python 2.4, but don't like your chances
of getting a response as no one uses Python 2.4 these days.
What package are you using that requires Python 2.4? I recollect there being
something out there that requires such an old Python on Windows, but cant
remember what it is.
Original comment by Graham.Dumpleton@gmail.com
on 1 Nov 2012 at 10:32
Actually our online server is with python 2.4.3
We were doing development using 2.7 and every time we upload it gives some
problem due to version difference
So we decided to downgrade our version on development machine to match the
online machine
I have googled "Parent: child process exited with status 3221225477 "
and alot of people have faced this issue for different reasons
It seems like a generic error by apache
Can we do any sort of debugging using WSGI or python to get more specific
details of this error?
Thanks for your help
Original comment by m.khurra...@gmail.com
on 1 Nov 2012 at 10:51
Your online server is Windows and mod_wsgi still, or Linux?
Original comment by Graham.Dumpleton@gmail.com
on 1 Nov 2012 at 10:56
Online is Centos
When we try to to update Python, it breaks yum and create other problems
Local server is Windows XP
Thanks
Original comment by m.khurra...@gmail.com
on 1 Nov 2012 at 10:57
You may find it better to run Linux in a local VM under Windows as you may hit
other problems in the differences between Windows and Linux.
Original comment by Graham.Dumpleton@gmail.com
on 1 Nov 2012 at 10:59
I am facing the same issue
I have installed Wamp2.1 with apache2.2.17
i have downloaded mod_wsgi-3.4.ap22.win-amd64-py2.7.so and renamed it to
mod_wsgi.so and placed in the module folder
Then wrote in httpd.conf "LoadModule wsgi_module modules/mod_wsgi.so" at the
end of load module list
create a file test.py
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]
Now the problem is browser is showing the code directly instead of output.
Any help is appreciated. soul.tarun@gmail.com
Original comment by soul.ta...@gmail.com
on 6 Feb 2013 at 7:21
@soul.tarin: No you are not having the same issue. This issue was for Apache
crashing, you simply haven't configured Apache correctly. Go read:
http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide
Next time please use the mailing list or other forum when you want help.
http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Asking_Your_Questions
You certainly shouldn't be posting against an existing ticket for another users
problem. Tickets are for reporting actual bugs, not for getting help in how to
run it.
Original comment by Graham.Dumpleton@gmail.com
on 7 Feb 2013 at 2:41
Closing out old issue. Looks like was an isolated issues as never had a
pandemic of other reports. Thus may have been related to environment.
Original comment by Graham.Dumpleton@gmail.com
on 12 Nov 2014 at 10:38
Original issue reported on code.google.com by
m.khurra...@gmail.com
on 31 Oct 2012 at 2:23