SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    Tacoma, WA
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CakePHP Warning (512) Error

    I haven't heard back from the CakePHP Google Group so I thought I would come over here and post. Upon the install of CakePHP I keep on getting a warning 512 where is says that the cache directory within the app/tmp directory is not writable. Fair enough. So I go to chmod the cache directory as 777 but then I get an even worse error.

    Code:
    Warning: unlink(/Users/myname/Sites/mysite/app/tmp/cache/persistent/cake_core_core_paths) [function.unlink]: Permission denied in /Users/myname/Sites/mysite/cake/libs/file.php on line 279
    
    Warning: fopen(/Users/myname/Sites/mysite/app/tmp/cache/persistent/cake_core_core_paths) [function.fopen]: failed to open stream: Permission denied in /Users/myname/Sites/mysite/cake/libs/file.php on line 146
    I have googled on this error like crazy and people say to make the directories within the tmp directory writable but when I do that I get that error.

    What can I do about this?

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    Tacoma, WA
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Resolved! majana from the google groups replied by saying

    "check permission of this file: tmp/cache/persistent/
    cake_core_core_paths

    set permissions to tmp recursive.
    chmod -R 0777 tmp "

    That fixed it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •