2014-11-12 3 views
-1

모바일 애플리케이션 API를 위해 Amazon의 Ubuntu 서버에 Rain 프레임 워크를 설치하려고합니다. 그것은 XAMPP 서버와 내 Windows PC에서 잘 실행하지만 메인 서버에이를 넣을 때 다음과 같은 오류 보여줍니다Amazon의 Ubuntu 서버에 Rain Framework가 있습니다.

Fatal error: Uncaught exception 'RainTpl_Exception' with message 'Cache directory cache/doesn't have write permission. Set write permission or set RAINTPL_CHECK_TEMPLATE_UPDATE to false. More details on http://www.raintpl.com/Documentation/Documentation-for-PHP-developers/Configuration/ ' in /var/www/html/pidentity/api/system/library/View/rain.tpl.class.php:312

스택 추적 :

#0./var/www/html/pidentity/api/system/library/View/rain.tpl.class.php(266): RainTPL->compileFile('content', 'content/', 'app/views/conte...', 'cache/', 'cache/content.9...') 
#1./var/www/html/pidentity/api/system/library/View/rain.tpl.class.php(154): RainTPL->check_template('content/content') 
#2./var/www/html/pidentity/api/system/library/View/Raintpl_View.php(30): RainTPL->draw('content/content', false) 
#3./var/www/html/pidentity/api/system/library/View.php(62): Raintpl_view->draw('content/content', false) 
#4./var/www/html/pidentity/api/app/controllers/content/content.php(15): View->draw('content/content') 
#5.[internal function]: Content_Controller->inde in /var/www/html/pidentity/api/system/library/View/rain.tpl.class.php on line 312 

답변

2

당신은 올바른 쓰기 권한에서 설정해야합니다 캐시 폴더

당신이해야 할 어떤 사용자 및 그룹을 선택하여 웹 서버 (아파치, nginx를 또는 기타)를 실행하는 것을 할 수있는 당신은 실행할 수 있습니다 :

$ ps aux | grep apache (or nginx) 

는 다음 사용자를 설정하려는의 그룹 및 사용 권한 :

$ chown -R [username] ./cache 
$ chgrp -R [groupname] ./cache 
$ chmod -R 755 ./cache