nginx Error: php file not found – Solved

I have installed nginx + php-fpm on my Linux, but got message like below.

notefound
This my standard nginx configuration: 


    location ~ .php$ {
        fastcgi_split_path_info ^(.+\.php)(.*)$;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  /var/www/test$fastcgi_script_name;
        include fastcgi_params;
    }

Fix that with the following:

    location ~ .php$ {
        root /var/www/unixmen;
        fastcgi_split_path_info ^(.+\.php)(.*)$;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  /var/www/unixmen$fastcgi_script_name;
        include fastcgi_params;
    }


Restart Nginx, php-pfm and try again:

php-foundDone!