Check if php-fpm is running and start if it’s not running

There are several solution on how to check if php5-fpm is running but they all failed (link1, link2). The solution to check if php-fpm is running is to use wget to get a file in your server. If wget fails then restart the service. This is the script to properly check if php-fpm is running and start […]

WordPress – give contributor permission to upload images without plugin.

WordPress contributor role lacks the permission to upload images. There are a few plugins that can let you change role permissions, but I just needed to allow contributor role to upload images. One minor change in the theme’s functions file is sufficient to give WordPress contributor role the permission to upload & insert images without […]