~marcoceppi/charms/precise/wordpress/apache-dog-pile

« back to all changes in this revision

Viewing changes to README.md

  • Committer: Marco Ceppi
  • Date: 2012-12-11 19:45:08 UTC
  • Revision ID: marco@ceppi.net-20121211194508-cnldvlf9bs3bl17q
Final changes to make apache2 switches work properly in the charm

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
 
114
114
The debugging is disabled by default.
115
115
 
 
116
## Engine
 
117
 
 
118
By default the WordPress charm will install nginx and php5-fpm to serve pages. In the event you do not wish to use nginx - for whatever reason - you can switch to Apache2.
 
119
This will provide a near identical workflow as if you were using nginx with one key difference: memcached. In nginx, the cached pages are served from memcached prior to
 
120
hitting the php contents, this isn't possible with apache2. As such memcached support still works, since it falls back to the WordPress caching engine, but it's not as robust.
 
121
Otherwise, Apache2 will still perform balancing and everything else mentioned above. You can switch between engines at will with the following:
 
122
 
 
123
    juju set wordpress engine=apache2
 
124
 
 
125
Then back to nginx:
 
126
 
 
127
    juju set wordpress engine=nginx
 
128
 
 
129
Any other value will result in the default (nginx) being used.
 
130
 
116
131
# Caveats
117
132
 
118
133
## HP Cloud
146
161
 
147
162
    juju add-unit -n3 wordpress
148
163
 
149
 
## I want more caching, I want MEMCACHING!
 
164
## I want more caching, I want MEMCACH(ED)ING!
150
165
 
151
166
Why not? We could ALL use more caching. Deploy a memcached server and relate it to your WordPress service to add memcache caching. This will 
152
167
automagically install [WP-FFPC](http://wordpress.org/extend/plugins/wp-ffpc/) (regardless of your tuning settings) and configure it to cache 
159
174
    
160
175
This setup will also synchronize the flushing of cache across all WordPress nodes, making it ideal to avoid stale caches.
161
176
 
 
177
A small note, when using the Apache2 engine and memcache, all request will still be sent to WordPress via Apache where typical caching 
 
178
procedures will take place and wp-ffpc will render the memcached page.
 
179
 
162
180
## I don't want to run three different machines for one WP install
163
181
 
164
182
There is a "hack" that will allow you to deploy multiple full services to the same machine as the bootstrap node, this has nothing to do with