* smarty has been installed in /usr/share/php/smarty/.
* To use it in your scripts, either
* 1. define('SMARTY_DIR', "/usr/share/php/smarty/") in your scripts, or
* 2. add '/usr/share/php/smarty/' to the 'include_path' variable in your
* php.ini file under /etc/php/SAPI (where SAPI is one of apache-php[45],
* cgi-php[45] or cli-php[45]).
На сколько я понимаю, здесь написано что для работы смарти мне нужно например добавить вот эту строку в php.ini?
include_path='/usr/share/php/smarty/'
ls /etc/php/cli-php5/
ext/ ext-active/ php.ini
ls /etc/php/apache1-php5/
ext/ ext-active/ php.ini
А вот это из phpinfo
Configuration File (php.ini) Path /etc/php/apache1-php5/php.ini
Fatal error: Smarty error: unable to write to $compile_dir '/var/www/bestmebel.com/templates_c'.
Be sure $compile_dir is writable by the web server user.
in /var/www/bestmebel.com/smarty/smarty.class.php on line 1088