Thanks. I tried a lot of things and ended up using a local mysql db, it works great now :)
thanks :) kind regards Peter Møller On Sep 6, 12:14 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > PeteDK wrote: > > Hi everybody... > > > I am trying to setup my apache webserver on a CentOS machine. I'm > > almost there(i hope) > > > however i keep getting a weird error message. Weird in the sense that > > i can easily connect to the same mysqldb when using the local > > development server but not when using apache. > > > PythonHandler django.core.handlers.modpython: OperationalError: (2003, > > "Can't connect to MySQL server on 'mysql.db4free.net' (13)") > > > my httpd.conf: > > <Location /normskema> > > SetHandler python-program > > PythonHandler django.core.handlers.modpython > > SetEnv DJANGO_SETTINGS_MODULE normskema.settings > > SetEnv PYTHON_EGG_CACHE "/var/www/pythoneggs" > > PythonDebug Off > > PythonOption django.root /normskema > > PythonPath "['/var/www/djangoapps'] + sys.path" > > </Location> > > Are you running PHP in same Apache instance? Conflicts between MySQL > client libraries can cause strange problems like this. > > http://code.google.com/p/modwsgi/wiki/ApplicationIssues#MySQL_Shared_... > > This is mod_wsgi documentation, but same issues applies to mod_python. > > Other option is database is on same machine and way connection is made > means that local connection is used for which database can validate > actual user connecting. If MySQL isn't configured to allow Apache > user, may fail. This is presuming MySQL supports this ability. > > Graham > Graham --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---