Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> smarty i problem z zezwoleniami, permission denied - mkdir
deniol13
post 18.03.2011, 20:16:06
Post #1





Grupa: Zarejestrowani
Postów: 190
Pomógł: 2
Dołączył: 30.11.2009

Ostrzeżenie: (10%)
X----


Witam, od niedawna przeszedłem na Linuxa a dokładnie Ubuntu w wersji 10.04, pracuję sobie na nim itd. i potrzebuję smarty w moim projekcie. Ściągnąłem smarty3, wrzuciłem do katalogu z aplikacją i tak wygląda "inicjalizacjia"

  1. $this->smarty = new Smarty;
  2. $this->smarty->template_dir = TEMPLATES . $this->conf['default_template'] . '/';
  3. $this->smarty->compile_dir = TEMPLATES_C . $this->conf['default_template'] . '/';
  4. $this->smarty->compile_check = true;
  5. $this->smarty->debugging = false;
  6. $this->smarty->caching = true;
  7. $this->smarty->use_sub_dirs = false;
  8.  
  9. $this->smarty->display( 'test.tpl' );


A taki dostaję error
  1. mkdir(): Permission deniedrename(/tmp/wrtahSGBp,./cache/f90829abf41f11f91488e6f7662c6aceadfd44aa.test.tpl.php): No such file or directorychmod(): No such file or directoryfilemtime(): stat failed for ./cache/f90829abf41f11f91488e6f7662c6aceadfd44aa.test.tpl.php


Próbowałem ustawić chmody dla katalogu kompilacji, folderu tmp ale nie pomaga. Proszę o pomoc
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
jamjan
post 21.03.2011, 15:43:02
Post #2





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 24.12.2007
Skąd: polozenie czesto prostopadle [odnosnie do podloza]

Ostrzeżenie: (0%)
-----


Być może należałoby ustawić scieżki absolutne dla smarty->set*Dir?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 26.06.2025 - 18:16