Wednesday, May 28, 2014

Re: Mysql DB local socket access errors with mod_wsgi

On Wed, May 28, 2014 at 3:18 PM, <jirka.vejrazka@gmail.com> wrote:
> It's very likely a permissions problem. Webserver processes tend to run under a special username (e.g. www-data) with very limited permissions - it's likely that this user does not have access to the socket file.

Yeah, that was the thing, thanks!

Actually I looked at the permissions, but the socket file had 777, but
the directory is 700 and owned by mysql:root.

If I experimentally chowned the directory to www-data and it works.
Which is strange as the mysql command line client connects via socket,
too when not given a hostname, I believe, and it works well when run
as a normal user.

Anyway, thanks for the pointer.

Henning

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB10%2BLtoSik%2BhzZ96e6-%2BrGB6mTiA_aCiRjoW%3Dd4No9qGskWhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment