Cannot setup cakephp on mac x os [locally]

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
------------
ikealtAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Loganathan NatarajanLAMP DeveloperCommented:
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
ikealtAuthor Commented:
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
ikealtAuthor Commented:
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
ikealtAuthor Commented:
Issue is fixed.
Problem was with the permissions (have to be writable) to:
/tmp/cache
/tmp/logs
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ikealtAuthor Commented:
I have found it by myself.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Frameworks

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.