Notes for installing Wordpress behind Nginx with friendly urls.
Checkout the latest version of Wordpress via subversion:
svn co http://svn.automattic.com/wordpress/trunk/ . cp wp-config-sample.php wp-config.php
Modify the database settings in wp-config.php to match your setup. Visit http://yourdomain.com to finish the setup, login as administrator, click settings, click permalinks, put a dot in “custom structure” and enter:
/%year%/%monthnum%/%day%/%postname%/
Add the following in the appropriate place inside your Nginx configuration file:
# wordpress fancy rewrites if (-f $request_filename) { break; } if (-d $request_filename) { break; } rewrite ^(.+)$ /index.php?q=$1 last;
Make sure to make your uploads folder writable (assuming www-data is the nginx user):
mkdir your/wordpress/location/wp-content/uploads chown www-data:www-data your/wordpress/location/wp-content/uploads
0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment