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.
As Debian does not use /usr/local/nginx/, it seems that something
named UWSGI is not following the file placing rules as it should.
uWSGI (uwsgi?) follows same rules as client_body/FastCGI/log/proxy
paths.
This means that starting with nginx-0.8.41 you should add
“–http-uwsgi-temp-path” to the ./configure options and starting with
nginx-0.8.42 you should also add “–http-scgi-temp-path”.
I had the exact same error using apt-get via http://wiki.nginx.org/NginxInstall – In that case, there is no
configure involved, installation is pretty much automatic.
This extends the “you” who “forgot to pass correct uwsgi-temp-path to
configure script” I guess. But I don’t know how to report the issue to
him/her.
BTW: I got by via a “mkdir /usr/local/nginx” but this might be
unorthodox.
I also installed from the ppa in ubuntu lucid, and created
/usr/local/nginx
Then I made the user (& group) www-data, who apparently is created by
the nginx install package, owner of /usr/local/nginx/ with read & write
access.
Start nginx with /etc.init.d/nginx start and youŕe ready to go.
Cheers Sebastiaan
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.