i have try to get nginx version,use: root at vps:~# nv=`/usr/local/nginx/sbin -v` root at vps:~# echo $nv but echo $nv was blank. i also have try php or other program was work.