I've got CakePHP 2.6.2 installed on Centos 7 on an AWS EC2 instance. The default user ('centos'), which I have set to run Apache as well as owning the files has full permissions over the tmp/* folders, yet I am getting the following error, which suggests that permissions are not set. Any clues please?
-- Warning: _cake_core_ cache was unable to write 'cake_dev_en-gb' to File cache in /var/www/site/lib/Cake/Cache/Cache.php on line 328
Warning: /var/www/site/app/tmp/cache/persistent/ is not writable in /var/www/site/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/site/lib/Cake/Cache/Cache.php:186 Stack trace: #0 /var/www/site/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /var/www/site/app/Config/core.php(374): Cache::config('_cake_core_', Array) #2 /var/www/site/lib/Cake/Core/Configure.php(72): include('/var/www/doxdir...') #3 /var/www/site/lib/Cake/bootstrap.php(175): Configure::bootstrap(true) #4 /var/www/site/app/webroot/index.php(90): include('/var/www/doxdir...') #5 {main} thrown in /var/www/site/lib/Cake/Cache/Cache.php on line 186
Warning: /var/www/site/app/tmp/cache/persistent/ is not writable in /var/www/site/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/site/lib/Cake/Cache/Cache.php:186 Stack trace: #0 /var/www/site/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /var/www/site/app/Config/core.php(374): Cache::config('_cake_core_', Array) #2 /var/www/site/lib/Cake/Core/Configure.php(72): include('/var/www/doxdir...') #3 /var/www/site/lib/Cake/bootstrap.php(175): Configure::bootstrap(true) #4 /var/www/site/app/webroot/index.php(90): include('/var/www/doxdir...') #5 {main} thrown in /var/www/site/lib/Cake/Cache/Cache.php on line 186
My cache configuration (in core.php) is:
$engine = 'File';
// In development mode, caches should expire quickly.
$duration = '+999 days';
if (Configure::read('debug') > 0) {
$duration = '+10 seconds';
}
// Prefix each application on the same server with a different string, to avoid Memcache and APC conflicts.
$prefix = 'dox_';
/**
* Configure the cache used for general framework caching. Path information,
* object listings, and translation cache files are stored with this configuration.
*/
Cache::config('_cake_core_', array(
'engine' => $engine,
'prefix' => $prefix . 'cake_core_',
'path' => CACHE . 'persistent' . DS,
'serialize' => ($engine === 'File'),
'duration' => $duration
));
/**
* Configure the cache for model and datasource caches. This cache configuration
* is used to store schema descriptions, and table listings in connections.
*/
Cache::config('_cake_model_', array(
'engine' => $engine,
'prefix' => $prefix . 'cake_model_',
'path' => CACHE . 'models' . DS,
'serialize' => ($engine === 'File'),
'duration' => $duration
));
Cache::config('quote_parameters', array(
'engine' => 'File',
'prefix' => $prefix,
'serialize' => ($engine === 'File'),
'duration' => '+1 week',
'probability' => 100,
'path' => CACHE . 'quote_parameters' . DS,
'groups' => array('order')
));
Cache::config('pace_codes', array(
'engine' => 'File',
'prefix' => $prefix,
'serialize' => ($engine === 'File'),
'duration' => '+1 week',
'probability' => 100,
'path' => CACHE . 'pace_codes' . DS,
'groups' => array('order')
));
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment