Download wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
2. Yum-y Install Nginx
3. Service Nginx Restart
See WELCOME to NGINX instructions for installation success!
4.yum-y Install PHP-FPM
5. Let Nginx support PHP-FPM
Find /etc/nginx/conf.d/default.conf, Open Edit It
>vi/etc/nginx/conf.d/default.conf
Remove the comments from the following section to supportPHPScript:
Location ~ \.php$ {
root HTML;
Fastcgi_pass 127.0.0.1:9000;
Fastcgi_index index.php;
Fastcgi_param script_filename /usr/share/nginx/html $fastcgi_script_name;
Include /etc/nginx/fastcgi_params;
}
which
fastcgi_param SCRIPT_ Filename /usr/share/nginx/html $fastcgi _script_name;  
/usr/share/nginx/html
include /etc/nginx / fastcgi_params;
/etc/nginx/fastcgi_params; to ensure that the file address is found
6.
Restart Nginx Service
>/etc/init.d/nginx stop
>/etc/init.d/nginx start
Start PHP-FPM
>/usr/local/sbin/php-fpm
Build PHP Test files
VI phpinfo.php
Its contents:
<?php
Phpinfo ();
?>
Browse http:// ip address) /phpinfo.php
If a PHP Featured logo page, it means the installation was successful.
Nginx to do front-end forwarding, PHP to PHP-FPM processing (NGINX+PHP-FPM)