Upload files?

I use nginx 07.61 upload files Often fail,using normal apache
nginx.conf:
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 8m;
sendfile on;
tcp_nopush on;
server_name_in_redirect off;
server_tokens off;

keepalive_timeout 75 20;
tcp_nodelay on;

fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 128k;
proxy_temp_path /dev/shm/proxy_temp;
fastcgi_temp_path /dev/shm/fastcgi_temp;
client_body_temp_path /dev/shm/client_body_temp;

nginx Compile
./configure --user=user --group=user --prefix=/usr/local/nginx
–with-http_stub_status_module --with-http_ssl_module
–with-http_sub_module --with-md5=/usr/lib --with-sha1=/usr/lib
–with-http_gzip_static_module

How should I do?

Posted at Nginx Forum:

error info:
Warning: REQUEST_BODY_FILE: open(‘/dev/shm/client_body_temp/0000000002’)
failed: No such file or directory (2) in Unknown on line 0

Posted at Nginx Forum:

On Sun, Sep 06, 2009 at 10:32:06AM -0400, ronin wrote:

error info:
Warning: REQUEST_BODY_FILE: open(’/dev/shm/client_body_temp/0000000002’) failed: No such file or directory (2) in Unknown on line 0

Who show this error ?
BTW, does Linux allow to create subdirectories in /dev/shm ?

Igor S. wrote:

On Sun, Sep 06, 2009 at 10:32:06AM -0400, ronin wrote:

error info:
Warning: REQUEST_BODY_FILE: open(’/dev/shm/client_body_temp/0000000002’) failed: No such file or directory (2) in Unknown on line 0

Who show this error ?
BTW, does Linux allow to create subdirectories in /dev/shm ?

Yes:

[root@saturn ~]# uname -sr
Linux 2.6.18-128.2.1.el5
[root@saturn ~]# mount
/dev/sda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /falcon type ext2 (rw,noatime)
[root@saturn ~]# ls /dev/shm
[root@saturn ~]# mkdir /dev/shm/test
[root@saturn ~]# ls /dev/shm
test
[root@saturn ~]# touch /dev/shm/test/testfile
[root@saturn ~]# ls -lR /dev/shm
/dev/shm:
total 0
drwxr-xr-x 2 root root 60 Sep 6 13:41 test

/dev/shm/test:
total 0
-rw-r–r-- 1 root root 0 Sep 6 13:41 testfile
[root@saturn ~]# echo “sometext” > /dev/shm/test/testfile
[root@saturn ~]# cat /dev/shm/test/testfile
sometext
[root@saturn ~]#

Jim

On Sun, Sep 06, 2009 at 03:29:48AM -0400, ronin wrote:

proxy_temp_path /dev/shm/proxy_temp;
fastcgi_temp_path /dev/shm/fastcgi_temp;
client_body_temp_path /dev/shm/client_body_temp;

nginx Compile
./configure --user=user --group=user --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-md5=/usr/lib --with-sha1=/usr/lib --with-http_gzip_static_module

How should I do?

First, you do not need
–with-md5=/usr/lib --with-sha1=/usr/lib
since
–with-md5=DIR set path to md5 library sources
–with-sha1=DIR set path to sha1 library sources

Second, “/dev/shm/…” files are files in memory. There is no sense to
create temporary files in memory. If you have a lot of memory, it’s
better
to increase client_body_buffer_size, number of fastcgi_buffers, etc.,
and to leave really large temporary files on disk.

I Recompilation nginx
./configure --user=user --group=user --prefix=/usr/local/nginx
–with-http_stub_status_module --with-http_ssl_module
–with-http_sub_module --with-http_gzip_static_module
and remove
proxy_temp_path /dev/shm/proxy_temp;
fastcgi_temp_path /dev/shm/fastcgi_temp;
client_body_temp_path /dev/shm/client_body_temp;

Questions remain,why?

Posted at Nginx Forum:

Cause of the problem identified, I used the “fastcgi_param
REQUEST_BODY_FILE $request_body_file;” inside fcgi.conf

Posted at Nginx Forum:

nginx/sbin/nginx: line 1:ELF: command not found
Every time nginx start have this kind of tips do not know whether the

Posted at Nginx Forum: