add smarty template dir and modify permission to /var/lib/php5