Tag Archive for 'wordpress'

Nginx Virtual Host Recipe for WordPress

Since more than one person has asked me for my Nginx Virtual Host recipe for WordPress sites, I’m posting it here. Be sure to change domain.tld to your actual domain name. The wildcard record will allow your site to respond to ANY sudomain request, which may not be something you want.

You’ll also need to change the path to your log files, as well as the path to your public webroot folder. Finally, up the client_max_body_size to match your upload_max_filesize and post_max_size settings in php.ini.

Finally, this assumes you are running your PHP fast cgi process on port 9000.

This is the recipe for WordPress (single site). I’ve also posted one for Drupal and WordPress MU / BuddyPress.

Download Nginx vhost Recipe for WordPress

Please post ways to improve this in the comments. I use this on a number of production sites, but there is always more one can do. Thanks to all of the blogs and articles that I ripped off helped me understand Nginx and got me started.

CMS Capabilities of WordPress

The underlying architecture of the WordPress content storage and retrieval systems provide a flexible and powerful way of creating all manner of sites.

This talk is an overview of that capability and stern reminder that its not about the WordPress plugins you install, but the Information Architecture you implement that will make your site a success or not.

Continue reading ‘CMS Capabilities of WordPress’

WP-Orphanage v1.1

If you’re using the Shared Users Table trick to create an ad-hoc blog network, then you need to be using WP-Orphange. When you set the constants CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE in your wp-config.php file, your users can log into any blog that defines the same Users table. However, if the blog isn’t the one they registered on they won’t be assigned any Roles or Capabilities on the other blogs, and they will be shown an error. I call these users ‘orphans.

WP-Orphanage is a WordPress plugin that automatically adopts all of your orphans automatically, and will set a Role for them on the blog they are trying to log into. You have control over which Role they are set to in wp-admin.

The v1.1 update fixes a bug introduced in the option screen in v1.0.1 and is recommended for all users of this plugin.

Many thanks to Vince from Alphak.net – Born to Be Wired for reporting this error and helping me debug the solution.

How Not To Build A WordPress plugin

How Not To Build a Plugin by Will Norris

Spotted on WordPress TV. Lots of examples of how to make your plugin less flexible, less secure, and more prone to misbehaving.

Video After The Jump

Continue reading ‘How Not To Build A WordPress plugin’

WP-Orphanage v1.0 Released

If you’ve implemented the Shared User Table trick in WordPress by defining CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE in your wp-config file, then you’ve probably realized there is a serious draw back to this approach when building a blog network: Users who sign up on one blog do not get any privileges on any of the other blogs in your network. This is by design, but you don’t have to leave it at that.
Continue reading ‘WP-Orphanage v1.0 Released’