Author Topic: [ERROR] "vlibTemplate Error: failed to create directory  (Read 992 times)

0 Members and 1 Guest are viewing this topic.

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
[ERROR] "vlibTemplate Error: failed to create directory
on: Tue, 05. November 2002 - 17:18:48
"vlibTemplate Error: failed to create directory in cache root (directory: /usr/local/www/vLib/)."

I have full access to this dir (777).

???

releasedj

  • Guest
[ERROR] "vlibTemplate Error: failed to create directory
Reply #1 on: Tue, 05. November 2002 - 17:42:05
Maybe the user that apache is running under (usually 'nobody') doesn't have write access to that directory.. in which case the permissions should be changed, i.e.:
chmod a+w /usr/local/www

I'm not an expert in Linux security so this may or may not help... let me know how you get on!

Regards,

Kelvin

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
[ERROR] "vlibTemplate Error: failed to create directory
Reply #2 on: Tue, 05. November 2002 - 18:57:18
That was the key :).

I forgot to "chmod 777 www".

My mistake, sorry.

Did not think of that.

---

I changed it now to:
'CACHE_DIRECTORY' => '/tmp/',

Works like charm.

The benchmark is reduced from 157ms to 35ms, if I use "vlibTemplateCache". Really impressive!

(Did I tell you, your a genius?)  :wink:

Best regards,
Claus