2012-02-21 4 views
12

내 프레임 워크 용 CakePHP를 사용하여 웹 사이트를 개발하기 시작했으며 문자 그대로 방금 시작했으며 이미 오류가 발생했습니다. 그 의미에 대해 작업 할 수 없습니다.CakePHP가 특정 파일에 쓸 수 없음

Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/lib/Cake/Cache/Cache.php on line 310 
Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/lib/Cake/Cache/Cache.php on line 310 
Warning: /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/app/tmp/cache/persistent/ is not writable in /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/lib/Cake/Cache/Engine/FileEngine.php on line 320 
Warning: /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/app/tmp/cache/models/ is not writable in /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/lib/Cake/Cache/Engine/FileEngine.php on line 320 
Warning: /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/app/tmp/cache/ is not writable in /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/lib/Cake/Cache/Engine/FileEngine.php on line 320 

은 또한 다음에 대한 오류를 얻고있다 :

Notice (1024): Please change the value of 'Security.salt' in app/Config/core.php to a salt value specific to your application [CORE/Cake/Utility/Debugger.php, line 717] 
Notice (1024): Please change the value of 'Security.cipherSeed' in app/Config/core.php to a numeric (digits only) seed value specific to your application [CORE/Cake/Utility/Debugger.php, line 721] 
Warning (512): _cake_core_ cache was unable to write 'file_map' to File cache [CORE/Cake/Cache/Cache.php, line 310] 

어떤 도움이 많이 모두 이해할 수있을 것이다.

+0

웹 서버가 실행되는 사용자가'app/tmp'를 쓰기 가능하게해야합니다. – geoffspear

답변

9

Wooble은 웹 서버 사용자가 app/tmp 폴더에 쓰기 가능해야 함을 지적합니다.

다른 두 개의 오류를 수정하려면 오류에서 제안 된대로 app/Config/core.php 파일을 편집해야합니다. 모든 Cake 프로젝트가 동일한 보안 값을 가지지 않도록 변경되어야하는 기본값을 가진 Cake 제공. 이 파일을 열면 주석에 지시 사항이 표시됩니다. 그런 다음 수동 사이트 http://book.cakephp.org에 튜토리얼을 살펴 가지고 케이크를 처음 사용하는 경우

...

+0

대단히 감사합니다. 실제로 그렇게 단순했습니다! 많은 선생님 께 감사드립니다! – 001221

+0

안녕하세요. 위의 예를 받아 들였습니다. 두 가지 답변을 모두 기대할 수는 없지만 마지막으로 댓글을 달았습니다. 다시 한번 대단히 감사합니다! – 001221

2

이 디렉토리 : 웹 서버가 아래 실행되고 어떤 사용자 ID로 쓰기 할 필요가 /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/app/tmp/cache. 현재 운영중인 OS를 지정하지 않으므로이를 구체적으로 수행하는 방법을 알 수 없습니다.

+0

Brillant that worked 폴더를 쓰기 가능하게 만들었지 만 여전히 다음 오류가 있습니다. 알림 (1024) : app/Config/core.php의 'Security.salt'값을 응용 프로그램에 특정한 소금 값으로 변경하십시오 [ 알림 (1024) : app/Config/core.php의 'Security.cipherSeed'값을 응용 프로그램과 관련된 숫자 (자릿수 전용) 시드 값으로 변경하십시오. [CORE/Cake/Utility/Debugger.php, line 721] 또한 Mac OS X Lion 최신 버전을 사용 중입니다. 감사 :) – 001221

0

APPLICATION_PATH/app/config/core.php 파일로 이동하십시오. 을 찾고 "Security.salt"및 "Security.cipherSeed"를 찾으십시오. 그 후 두 값을 변경하십시오. 그러면 솔루션을 얻을 수 있습니다.

4

확인하면 폴더가 있습니다 응용 프로그램/tmp를/

과 같은 하위 폴더 구조가 있습니다

TMP/

-/캐시

-/로그

-/sessions

-/tests

그런 다음이 폴더에 대한 웹 사용자의 권한을 확인하십시오.

관련 문제