약 한 달 동안 사이트에서 작업 중이며 최근에 뭔가 구워 봤는데 지금은 방금 튀어 나온 캐시 사용 권한 문제로 인해 막혔습니다. 쪽으로. 나는 예를 들어,이 문제에 대한 유래에 모든 것을 읽었습니다 : http://cakephp.lighthouseapp.com/projects/42648/tickets/2172cakephp SplFileInfo :: openFile myapp_cake_core_cake_console 스트림을 열지 못했습니다 : 사용 권한이 거부되었습니다
하지만 여전히 나타나지이 오류를 중지 할 수 없습니다 : 버그/비 버그를 포함
Cakephp Permission denied Fileengine.php
플러그인이 HTML-> 스크립트 도우미를 사용하여 자바 스크립트 자산을로드하는 동안
경고 : SplFileInfo :: openFile (은/var/www /에서 2tli/응용 프로그램/tmp를/캐시/지속/myapp_cake_core_cake_console_) : 은/var/www /에서 2tli/lib에 거부 권한 : 스트림을 열지 못했습니다 라인 /Cake/Cache/Engine/FileEngine.php 314
호출 스택 : 0.0009 352948 1. {주}() /var/www/2tli/app/webroot/index.php:0
0.0045 446644 2. include('/var/www/2tli/lib/Cake/bootstrap.php') /var/www/2tli/app/webroot/index.php:92 0.0327 1174292 3. Configure::bootstrap() /var/www/2tli/lib/Cake/bootstrap.php:171 0.0427 1406772 4. include('/var/www/2tli/app/Config/core.php') /var/www/2tli/lib/Cake/Core/Configure.php:78 0.0494 1512200 5. Cache::config() /var/www/2tli/app/Config/core.php:336 0.0495 1512940 6. Cache::_buildEngine() /var/www/2tli/lib/Cake/Cache/Cache.php:136 0.0562 1635708 7. FileEngine->gc() /var/www/2tli/lib/Cake/Cache/Cache.php:169 0.0562 1635796 8. FileEngine->clear() /var/www/2tli/lib/Cake/Cache/Engine/FileEngine.php:102 0.0617 1637516 9. FileEngine->_setKey() /var/www/2tli/lib/Cake/Cache/Engine/FileEngine.php:236 0.0627 1657060 10. trigger_error() /var/www/2tli/lib/Cake/Cache/Engine/FileEngine.php:314
PHP 5.3.10을 실행 중입니다. 케이크 2.3.7. 나는 내 bootstrap.php에 다음과 같은 한 :
/**
* 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,
'mask'=>0666));
Cache::config('_cake_model_', array(
'engine' => $engine,
'prefix' => $prefix.'cake_model_',
'path' => CACHE . 'models' . DS,
'serialize' => ($engine === 'File'),
'duration' => $duration,
'mask' => 0666
));
내 플러그인도있는 bootstrap.php 있습니다 :
// Setup a 'default' cache configuration for use in the application.
Cache::config('default', array('engine' => 'File', 'mask' => 0666));
그리고 core.php에서
이Cache::config('UserPlugin', array(
'engine' => 'File',
'duration'=> '+3 months',
'path' => CACHE,
'prefix' => 'UserPlugin_',
'mask'=>0666
));
내가 넣어 가지고 모든 애플 리케이션/tmp 파일 및 폴더 내 아파치 소유자 www - 데이터 및 777로 설정 (나는 또한 마스크를 일치 666을 시도).
나는 app/tmp 디렉토리도 삭제하고 다시 작성했습니다.
누구에게 아이디어가 있습니까?
EDIT : 나는 이것을 어떻게 만들어야할지 모르겠지만 Html-> script helper를 주석 처리하는 것은 때때로 오류를 제거하지 않을 것입니다 (원시 HTML은 여전히 스크립트에 include를 보여주었습니다) . 그래서 캐시를 삭제하고 캐시 지속 시간을 1 초로 설정했습니다. html이 캐시 된 것처럼 보인 경우에만 가끔씩 예상대로 작동합니다. 필자가 일관되게 예상 한대로 작동하도록하는 유일한 방법은 캐시를 삭제하고 브라우저 (firefox)를 다시 시작하는 것입니다. 그런 다음 firefox를 다시 시작한 후에 html-> 스크립트를 다시 입력 할 때마다 cake는 권한 오류없이 작동합니다. 나는 근본 원인을 찾을 수없는 것 때문에 문제가 다시 올 것이라고 확신한다.
는 앱/tmp를/캐시 디렉토리에서 모델, 뷰 및 영구 하위 폴더를 포함 적이 있습니까? www가 데이터와 나는 정말이 하나 붙어있어 777로 예를 joshua.paling @ –
... – user6972
는 당신은 확실히 여유 공간이 서버에 남아 있습니까? 일반 FTP를 통해 수동으로 이러한 디렉토리에 파일을 만들 수 있습니까? –