Reference: HTTP://WWW.DARRENFANG.COM/2014/02/INSTALL-WORDPRESS-WITH-NGINX-ON-UBUNTU/1. Download 2. Sites-available and sites-enable, according to my current understanding, available can have more than one configuration file exists, but enable can only have one of their soft links http://www.v2ex.com/t/ 168135 Create a soft link to enable the site sudo ln-s/etc/nginx/sites-available/192.168.0.7/etc/nginx/sites-enabled/192.168.0.7 3. Cd/var/www, set up the 192.168.0.7 directory (because the domain name is not considered for the moment), copy the WordPress installation package and unzip sudo tar-zxvf wordpress-4.2.1.tar.gz because extracted all files are in the WordPress folder, so sudo mv *. /Then modify the owner of all files and folders: sudo chown-r www-data:www-data./192.168.0.7/4. MySQL creates the databases and users associated with WordPress, and then grants permissions. 5. Copy the wp-config-sample.php to wp-config.php and modify the Parameters//* * MySQL Settings-specific information from the host you are using * *//^m/** the name of the WordPress database */define ( ' Db_name ', ' WordPress ');/** MySQL database user name */define (' Db_user ', ' WordPress ');/** MySQL database password */define (' Db_password ', ' your Password ');
WordPress Build Process