error in nginx-0.8.42: [emerg]: mkdir() "/usr/local/nginx/uwsgi_temp" failed

Boris Dolgov boris at
Sat Jun 26 11:37:52 MSD 2010

On Sat, Jun 26, 2010 at 11:24 AM, M. Alan <varia at> wrote:
> Up until (at least) nginx-0.8.37 I was able to rebuild the nginx
> Ubuntu package without any problems (I have previously posted in this list
> the procedure to rebuild a Debain/Ubuntu package).
> Using the nginx-0.8.42.tar.gz sources I am able to build
> a nginx_0.8.42-0ubuntu1_i386.deb package that, once installed, gives
> the following error while trying to run nginx:
> sudo /usr/sbin/nginx -t
> the configuration file /etc/nginx/nginx.conf syntax is ok
> [emerg]: mkdir() "/usr/local/nginx/uwsgi_temp" failed (2: No such file
>  or directory) configuration file /etc/nginx/nginx.conf test failed
> As Debian does not use /usr/local/nginx/, it seems that something
> named UWSGI is not following the file placing rules as it should.

Looks like you forgot to pass correct uwsgi-temp-path to configure script.

Boris Dolgov.

More information about the nginx mailing list