This HowTo explains wordpress setup with nginx on CentOS:
Install the required packages
yum install php nginx php-fpm mysql-server php-mysql
Create Nginx VHOST
vi /etc/nginx/conf.d/wordpress.conf
server {
listen 80;
server_name mywordpress.com;
location / {
root /var/www/html;
index index.html index.htm index.php;
}location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
include fastcgi_params;
}
}
Download and Extract wordpress
cd /var/www/html
tar zxf latest.tar.gz
wget http://wordpress.org/latest.tar.gz
mv * wordpress/* ../
chown -R apache:apache /var/www/html/
Login to mysql and create database
mysql-u root -p
create database wordpress;
Create a host entry and browse the page to proceed with the installation wizard