Adrian Holovaty wrote:
> On 3/24/06, abe <[EMAIL PROTECTED]> wrote:
> > I get a blank screen (in the browser) and the
> > httpd error logs say :
> >
> > [Fri Mar 24 18:36:09 2006] [notice] mod_python: (Re)importing module
> > 'django.core.handlers.modpython'
> > [Fri Mar 24 18:36:17 2006] [notice] child pid 13817 exit signal
> > Segmentation fault (11)
> >
> > does anybody have an idea what goes wrong?
>
> Hey there,
>
> Check out the Django/mod_python docs for some possible explanations/solutions.
>
> http://www.djangoproject.com/documentation/modpython/#if-you-get-a-segmentation-fault
>
> Adrian

slowly making progress...

I removed mod_php from the httpd.conf
and installed a newer version of MySQLdb (1.0 -> 1.2.0)

It seems to get a bit further (not completely sure about that)
but now mysql gives problems.
If I try to reach te admin site I get the following error message
in the browser window (just plain text, not the django error page
type):

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
    result = object(req)

  File
"/usr/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/handlers/modpython.py",
line 165, in handler
    return ModPythonHandler()(req)

  File
"/usr/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/handlers/modpython.py",
line 145, in __call__
    response = middleware_method(request, response)

  File
"/usr/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/middleware/sessions.py",
line 74, in process_response
    session_key = request.session.session_key or
sessions.get_new_session_key()

  File
"/usr/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/models/core.py",
line 110, in _module_get_new_session_key
    get_object(session_key__exact=session_key)

  File
"/usr/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/utils/functional.py",
line 3, in _curried
    return args[0](*(args[1:]+moreargs), **dict(kwargs.items() +
morekwargs.items()))

  File
"/usr/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/meta/__init__.py",
line 1355, in function_get_object
    obj_list = function_get_list(opts, klass, **kwargs)

  File
"/usr/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/meta/__init__.py",
line 1395, in function_get_list
    return list(function_get_iterator(opts, klass, **kwargs))

  File
"/usr/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/meta/__init__.py",
line 1376, in function_get_iterator
    cursor = db.db.cursor()

  File
"/usr/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/db/backends/mysql.py",
line 67, in cursor
    self.connection = Database.connect(**kwargs)

  File "/usr/lib/python2.3/site-packages/MySQLdb/__init__.py", line 66,
in Connect
    return Connection(*args, **kwargs)

  File "/usr/lib/python2.3/site-packages/MySQLdb/connections.py", line
134, in __init__
    super(Connection, self).__init__(*args, **kwargs2)

OperationalError: (2002, "Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (13)")


if I use manage.py runserver on the localhost, I get the normal admin
login page.


any idea's how to solve this? I googled for the error message but I
don't find much 
django specific

thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to