242 | | ==== php-fpm config changes ==== |
243 | | |
244 | | The following lines need uncommenting in {{{/opt/local/etc/php53-fpm.conf}}}: |
245 | | |
246 | | {{{ |
247 | | pm.status_path = /status |
248 | | ping.path = /ping |
249 | | }}} |
250 | | |
251 | | The following number of servers needs changing: |
252 | | |
253 | | {{{ |
254 | | ;pm.start_servers = 18 |
255 | | pm.start_servers = 4 |
256 | | |
257 | | ;pm.max_spare_servers = 18 |
258 | | pm.max_spare_servers = 4 |
259 | | }}} |
260 | | |
261 | | After the edits above have been made nginx and php-fpm need restarting: |
262 | | |
263 | | {{{ |
264 | | /etc/init.d/php53-fpm reload |
265 | | /etc/init.d/nginx restart |
266 | | }}} |
267 | | |
268 | | Best check the error log: |
269 | | |
270 | | {{{ |
271 | | tail -f /var/log/php/php53-fpm-error.log |
272 | | }}} |
273 | | |
274 | | These fixes can be tested like this: |
275 | | |
276 | | {{{ |
277 | | cd /etc/munin/plugins |
278 | | munin-run phpfpm_connections |
279 | | munin-run phpfpm_status |
280 | | munin-run nginx_status |
281 | | munin-run nginx_request |
282 | | }}} |
283 | | |