When I turn on safe_mod in php.ini Smarty doesn't work. I just get a message
Warning: Smarty error: problem creating directory "/var/www/test/site/templates_c//%%-28/%%-280947433" in /var/www/test/Smarty/Smarty.class.php on line 1042
Apache is running on apache user, all scripts are owned by apache user and templates_c dir has read/write/exec mode for user apache.
http://smarty.incutio.com/?page=SmartyFrequentlyAskedQuestions#install-1