php - Rain Framework on Ubuntu server on Amazon -


i'm trying install rain framework on ubuntu server on amazon mobile application api. runs fine on windows pc xampp server, when put main server shows following error:

fatal error: uncaught exception 'raintpl_exception' message 'cache directory cache/doesn't have write permission. set write permission or set raintpl_check_template_update 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

stack trace:

#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 

you must set correct write permission in cache folder.

you can checking user , group running web server (apache, nginx or other), can run:

$ ps aux | grep apache (or nginx) 

then want set user, group , permissions:

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

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -