Sorry for the confusion,
You don't have to write a shell.

Just make sure your cache folders are empty and directories have
correct permissions set.
Otherwise chmod them to set the correct permissions which basically
means that the webserver user (e.g. apache) is able to write/read
files into the dirs. Directories additionally need the executable
permission flag to be set in order to read from them.

Example (assuming you are running linux or macosx):

My webserver is running as user "apache" and group "apache".
The cache/persistent directory belongs to user "foo" and group "foo"
and these permissions set:

User: +r +w +x
Group: +r +w +x
Other: -r -w -x

The user "apache" is not a member of  group "foo".
In order to allow the "apache" user to write and read files in cache/
persistent we either have to:

chmod o+rwx cache/persistent
or
chown apache:apache cache/persistent

-David

On Sep 1, 2:40 am, fhx <[EMAIL PROTECTED]> wrote:
> Hi David,
> thx for the reply. I deleted everything in .../apps/tmp/cache, but the
> same messages still appear. I read also the other linked posting, but
> don't know right now how to use it. I know what a shell is and what a
> script is, but don't know what is meant there with writing a shell
> script ... is this the controller.php where the functions are
> defined ?
>
> Regards,
> Frank
>
> On Aug 31, 3:21 am, David Persson <[EMAIL PROTECTED]> wrote:
>
> > Hi Frank,
>
> > Try flushing your caches by deleting the files in ........../app/tmp/
> > cache/(models|persistent|views) directory. The cache files are
> > sometimes written with wrong file permissions if you execute bake (or
> > any other shell) prior to visiting one of your app's pages via
> > browser.  This way the cache files belong to the user which executed
> > the shell and are readable/writable by the apache user.
>
> > Also 
> > see:http://groups.google.com/group/cake-php/browse_thread/thread/c70af5d6...
>
> > for more info on how to disable caching in shells.
>
> > - David
>
> > On Aug 31, 7:04 am, xfh <[EMAIL PROTECTED]> wrote:
>
> > > I thought I added this posting already by google groups, but it didn't
> > > show up anywhere again, so I post it new ... it also didn't forward to
> > > my e-mail and I guess it still won't with this new posting. Please
> > > send me a link to your reply if possible to   [EMAIL PROTECTED]
> > > because I also don't get any link to my posting presented by google
> > > groups. Also I can't see the url of the CakePHP group so to go there
> > > directly instead of connecting by google groups.
>
> > > Thx, Frank
>
> > > Doing the first CakePHP tutorial when checking out the
>
> > >http://www.example.com/posts/indexIgetthose error messages. Any
>
> > > suggestions why + how to fix this ?
>
> > > Warning:
>
> > > file_put_contents(/var/www/vhosts/picmoweb.com/subdomains/dev/httpdocs/
> > > app
>
> > > /tmp/cache/models/default_cake_blog_tutorial_list)
>
> > > [function.file-put-contents]: failed to open stream: Permission denied
> > > in
>
> > > /var/www/vhosts/picmoweb.com/subdomains/dev/httpdocs/cake/basics.php
> > > on
>
> > > line 936
>
> > > Warning:
>
> > > file_put_contents(/var/www/vhosts/picmoweb.com/subdomains/dev/httpdocs/
> > > app
>
> > > /tmp/cache/models/default_posts) [function.file-put-contents]: failed
> > > to
>
> > > open stream: Permission denied in
>
> > > /var/www/vhosts/picmoweb.com/subdomains/dev/httpdocs/cake/basics.php
> > > on
>
> > > line 936- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to