ho provato a spostare il tpl dentro a templates e a spostare tutte le cartelle direttamente dentro la root del sito.
poi ho fatto queste modifiche:
Codice PHP:
<?php
require_once '/usr/lib/php/libs/Smarty.class.php';
$smarty = new Smarty();
$smarty->template_dir('/srv/http/Banca/templates');
$smarty->compile_dir('/srv/http/Banca/templates_c');
$smarty->cache_dir('/srv/http/Banca/cache');
$smarty->config_dir('/srv/http/Banca/configs');
$smarty->assign('name', 'Prova');
$smarty->display('template.tpl');
$smarty->debugging = TRUE;
?>
nada de nada.
vi posto i permessi:
codice:
# ls -l /srv/http/Banca
totale 40
drwxrwxr-x 2 http http 4096 24 gen 17.43 cache
-rwxrwxr-x 1 casa users 293 24 gen 17.43 config.php
drwxrwxr-x 2 casa users 4096 24 gen 17.43 configs
drwxrwxr-x 2 casa users 4096 28 lug 19.15 css
drwxrwxr-x 2 casa users 4096 28 lug 15.46 images
-rwxrwxr-x 1 casa users 859 24 gen 17.43 index.php
drwxrwxr-x 2 casa users 4096 7 gen 19.34 old
-rwxrwxr-x 1 casa users 380 24 gen 17.48 smartytest.php
drwxrwxr-x 2 casa users 4096 24 gen 17.43 templates
drwxrwxr-x 2 http http 4096 24 gen 17.43 templates_c
qualche idea??