If you getting the error: Uncaught PHP Exception Unable to write to the .../files/civicrm/templates_c" directory.
You have probably used drush cache clear run under your account and that created the temp files owned by the user running drush.
SO you can "run drush as the web server user"
sudo -u apache drush cr
or you can just look at the ...