indeed, defining it is so simple! On the other hand you can still create a
symlink from /var/www/app_name/logs/ to app_path/tmp/logs.

I bet that will work like a charm if you have +Options
FollowSymlinksOnOwnerMatch also ;)

Faifas
http://www.voveris.eu/


On Mon, Aug 31, 2009 at 23:16, Crazy <crazy...@gmail.com> wrote:

>
> Thanks, that's just what I was looking for.
>
> I'll just define the TMP, to /var/<app>/
>
>
> On Aug 31, 4:12 pm, Kornelije Sajler <xaj...@gmail.com> wrote:
> > There is a LOGS constant for Paths in CakePHP. You can find it in your
> > cake_1.2.4.8284/cake/config/paths.php default is:
> > define('LOGS', TMP.'logs'.DS);
> >
> > TMP = if (!defined('TMP')) {
> > define('TMP', APP.'tmp'.DS);}
> >
> > DS = define('DS', DIRECTORY_SEPARATOR);
> > I wouldn't change that!
> >
> > So you have two choices to move all your tmp CakePHP files (sessions,
> logs,
> > cache,..) to wherever you are by changing TMP path or you can only adjust
> > the LOGS path.
> >
> > There is probably nicer way to change TMP dir (since have if
> > (!defined('TMP'))) but I don't know where could be defined!
> >
> > Hope it helps!
> >
> > Kornelije Sajler
> >
> > On Mon, Aug 31, 2009 at 15:40, Crazy <crazy...@gmail.com> wrote:
> >
> > > Hi,
> >
> > > In one of my projects it's required that the log files are being
> > > logged to /var/logs/<appname>
> >
> > > I was wondering if it was possible to change the default location of
> > > app/tmp/logs?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to