(0) Install PHP environment
# yum Install nginx php-fpm php-mysql mysql-server php-mbstring php-gd php-pear php-mcrypt php-mhash php-eaccelerator ph P-suhosin Php-tidy Php-curl
(1) Connect () to Unix:/var/run/php5-fpm.sock failed (2:no such file or directory)
At that time the weak weak discovery path does not have this file to install PHP itself is a problem, and later learned that this is the dynamic generation of the clatter.
$vim/etc/php-fpm.d/www.conf
find that line listen = 127.0.0.1:9000
Add a line below listen =/var/run/php5-fpm.sock
Change the default backlog value to 4096
; Set Listen (2) backlog. A value of '-1 ' means unlimited.
; Default value:4096
; listen.backlog = 4096
Next, change the user group to Nginx, because the default is Apache
; Rpm:apache choosed to being able to access some dir as httpd
user = Nginx
; Rpm:keep a group allowed to write in log dir.
Group = Nginx
(2) Restart PHP-FPM
Service PHP-FPM Start
Service PHP-FPM Stop
(3) Nginx error Primary script Unknow
Vim/etc/nginx/nginx_conf
Fastcgi_param script_filename $document _root$fastcgi_script_name;
WordPress Blog Server Migration Process Summary