WordPress 3.8 nginx 502 Bad Gateway

  mysql, question

Server configuration
Central Processor Model [8 stone] Intel (R) Xeon (R) Central Processor E 5620 @ 2.40GHz | Frequency: 2394.021 | L2 Cache: 12288 KB | Bogomips:4788.04 ×8
Memory 4G
Three hard disks 300G 15000 turn to RAID 5

WordPress 3.8

CentOS 5.7
nginx/1.2.7
php5.2.17p1
MySQL 5.1.60

How to configure these parameters of PHP MySQL in Nginx

502 means that nginx cannot connect to php-fpm. Please look at the logs of php-fpm and nginx.