I have a nginx server with php5-fpm on ubuntu 14.
when I echo $_SERVER['HOME']
it return back /var/www
my web files located in /usr/share/nginx/html
obviously it's not my home directory
if i type ~/
in the terminal I can get the home directory that is /home/myname
I couldn't find where this information set and why it set wrong.