?
Solved

Cannot setup cakephp on mac x os [locally]

Posted on 2014-07-21
5
Medium Priority
?
502 Views
Last Modified: 2014-08-05
Hello everybody,
Trying to setup cake php locally on mac x os. But getting an error. Do anybody have any ideas how to solve this issue?

Thanks in advance.

------------
Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/username/Sites/cake/lib/Cake/Cache/CacheEngine.php on line 60

Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /Users/username/Sites/cake/lib/Cake/Cache/Cache.php on line 323

Warning: /Users/username/Sites/cake/app/tmp/cache/persistent/ is not writable in /Users/username/Sites/cake/lib/Cake/Cache/Engine/FileEngine.php on line 384

Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /Users/username/Sites/cake/lib/Cake/Cache/Cache.php:181 Stack trace: #0 /Users/username/Sites/cake/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /Users/username/Sites/cake/app/Config/core.php(375): Cache::config('_cake_core_', Array) #2 /Users/username/Sites/cake/lib/Cake/Core/Configure.php(72): include('/Users/userna...') #3 /Users/username/Sites/cake/lib/Cake/bootstrap.php(175): Configure::bootstrap(true) #4 /Users/username/Sites/cake/app/webroot/index.php(94): include('/Users/userna...') #5 /Users/username/Sites/cake/index.php(41): require('/Users/userna...') #6 {main} thrown in /Users/username/Sites/cake/lib/Cake/Cache/Cache.php on line 181
------------
0
Comment
Question by:ikealt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 40210890
Just try to uncomment the line "date_default_timezone_set"  in /app/config/core.php.

//date_default_timezone_set('UTC');

Open in new window


Hope you're using PHP 5.3?
0
 

Author Comment

by:ikealt
ID: 40227591
Hi,
Thanks for it. Now I am getting error:
Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /Users/username/Sites/cake/lib/Cake/Cache/Cache.php on line 323

Warning: /Users/username/Sites/cake/app/tmp/cache/persistent/ is not writable in /Users/username/Sites/cake/lib/Cake/Cache/Engine/FileEngine.php on line 384

Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /Users/username/Sites/cake/lib/Cake/Cache/Cache.php:181 Stack trace: #0 /Users/username/Sites/cake/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /Users/username/Sites/cake/app/Config/core.php(375): Cache::config('_cake_core_', Array) #2 /Users/username/Sites/cake/lib/Cake/Core/Configure.php(72): include('/Users/userna...') #3 /Users/username/Sites/cake/lib/Cake/bootstrap.php(175): Configure::bootstrap(true) #4 /Users/username/Sites/cake/app/webroot/index.php(94): include('/Users/userna...') #5 /Users/username/Sites/cake/index.php(41): require('/Users/userna...') #6 {main} thrown in /Users/username/Sites/cake/lib/Cake/Cache/Cache.php on line 181
------------

Any ideas?

P.S. yes php is latest version.
0
 

Author Comment

by:ikealt
ID: 40227736
By the way, permissions:
192-168-1-103:~ username$ cd /users/username/Sites/cake/app
192-168-1-103:app username$ ls -l
total 8
drwxr-xr-x@ 11 username  staff  374 Jul 29 22:42 Config
drwxr-xr-x@  7 username  staff  238 Jun 14 18:36 Console
drwxr-xr-x@  5 username  staff  170 Jun 14 18:36 Controller
drwxr-xr-x@  3 username  staff  102 Jun 14 18:36 Lib
drwxr-xr-x@  3 username  staff  102 Jun 14 18:36 Locale
drwxr-xr-x@  5 username  staff  170 Jun 14 18:36 Model
drwxr-xr-x@  3 username  staff  102 Jun 14 18:36 Plugin
drwxr-xr-x@  4 username  staff  136 Jun 14 18:36 Test
drwxr-xr-x@  3 username  staff  102 Jun 14 18:36 Vendor
drwxr-xr-x@  9 username  staff  306 Jun 14 18:36 View
-rwxr-xr-x@  1 username  staff  695 Jun 14 18:36 index.php
drwxr-xrwx@  7 username  staff  238 Jul 21 19:22 tmp
drwxr-xr-x@ 10 username  staff  340 Jun 14 18:36 webroot
192-168-1-103:app username$
0
 

Accepted Solution

by:
ikealt earned 0 total points
ID: 40232787
Issue is fixed.
Problem was with the permissions (have to be writable) to:
/tmp/cache
/tmp/logs
0
 

Author Closing Comment

by:ikealt
ID: 40240782
I have found it by myself.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

WHY MVC is the future technology... As many of you know, MVC is Model,View,Controller pattern. Model View Controller pattern was invented in a Smalltalk context at Xerox in late 1970s. Why is this buzz about MVC: --------------------------- …
There is a huge demand for CodeIgniter among the PHP web developers due to its dynamic features and benefits these days. It is one of most popular and agile open source PHP framework for creating robust web applications in PHP web development field.…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question