add smarty template dir and modify permission to /var/lib/php5
fix another set of conflict