Sandeep sk
Sandeep sk

Reputation: 1

Uncaught exception 'CacheException' with message 'Cache engine "_cake_core_" is not properly configured cakephp AWS

I am getting following error: using cakephp, aws.

Warning: _cake_core_ cache was unable to write 'cake_dev_en-gb' to File cache in /var/www/html/myApp/lib/Cake/Cache/Cache.php on line 328

Warning: /var/www/html/myApp/app/tmp/cache/persistent/ is not writable in /var/www/html/myApp/lib/Cake/Cache/Engine/FileEngine.php on line 385

Fatal error: Uncaught exception 'CacheException' with message 'Cache engine "_cake_core_" is not properly configured. Ensure required extensions are installed, and credentials/permissions are correct' in /var/www/html/myApp/lib/Cake/Cache/Cache.php:186 Stack trace: #0 /var/www/html/myApp/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /var/www/html/myApp/app/Config/core.php(383): Cache::config('_cake_core_', Array) #2 /var/www/html/myApp/lib/Cake/Core/Configure.php(72): include('/var/www/html/i...') #3 /var/www/html/myApp/lib/Cake/bootstrap.php(431): Configure::bootstrap(true) #4 /var/www/html/myApp/app/webroot/index.php(95): include('/var/www/html/i...') #5 {main} thrown in /var/www/html/myApp/lib/Cake/Cache/Cache.php on line 186

NOTE : tmp folders have full permission(777), yet getting the same error, please advise?

I have gone through https://groups.google.com/forum/#!topic/cake-php/gKFJf6mK6qk also.

Upvotes: 0

Views: 3132

Answers (2)

Arvind Kumar
Arvind Kumar

Reputation: 400

Though it is very old question but again it very important for those whose application are already running on old server like me. After many crawling on web, I found below solution working for me.

sudo chmod -R 777 /var/www/html/

After above command I found that- Cannot use image captcha as GD library is not enabled!

Then I used

yum install gd gd-devel php-gd

sudo systemctl restart httpd

Rference threads:- CakePHP cache was unable to write in Centos 7

CentOS: Enabling GD Support in PHP Installation

Upvotes: 0

J Ajay
J Ajay

Reputation: 327

Please check with server configuration, Firewall should be disable on the server to access 777 folder by anonymous users.

Upvotes: 1

Related Questions