Hi Tom if i dont create the file i get the error: unix:///tmp/uwsgi.sock 
failed (2: No such file or directory)

On Thursday, March 16, 2017 at 1:47:12 PM UTC+1, Tom Evans wrote:
>
> On Thu, Mar 16, 2017 at 12:25 PM, valerio orfano <ingor...@gmail.com 
> <javascript:>> wrote: 
> > Hi All 
> > 
> > i ve created a django application not using virtual environment. I ve 
> > installed nginx and trying to integrate them via uwsgi application. 
> > Here my configurations files. 
> > 
> >     [uwsgi] 
> >     chdir = /home/elastic/workspace/ES_Brevetti 
> >     wsgi-file = ES_Brevetti/wsgi.py 
> >     master = true 
> >     processes = 5 
> >     uid = nginx 
> >     gid = nginx 
> >     socket = unix:///socket/uwsgi.sock 
> >     chmod-socket = 666 
> >     vacuum = true 
> > 
> > i've created the file /sockect/uwsgi.sock with permission 777 
> > 
> > chown nginx:nginx -R /sockect/uwsgi.sock 
>
> When you say you've "created the file /socket/uwsgi.sock", what have 
> you actually done? 
>
> You should have made a directory that uwsgi will be able to create a 
> unix socket in. You should not create a regular file, or even a named 
> fifo, with the same name as the socket, otherwise uwsgi will be unable 
> to create the socket. 
>
> Typically people do this by placing their socket files in /tmp or 
> /var/tmp, a world writeable sticky directory. 
>
> Cheers 
>
> Tom 
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/88eb9c79-4823-40ac-a6e3-f6f810952c8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to