We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

[Nginx] Volt directory can't be written

Hi, The error I am getting is

  * FastCGI sent in stderr: "PHP message: PHP Warning:  Phalcon\Mvc\View\Engine\Volt\Compiler::compileFile(/usr/share/nginx/html/app/cache/_usr_share_nginx_html_app_views_test_index.volt.php): failed to open stream: Permission denied in /usr/share/nginx/html/public/index.php on line 31" while reading response header from upstream, client: 10.2.0.145, server: localhost, request: "GET /test/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "10.2.0.151"*

i'm using phalcon 2.1 , centos 7, php5.5, nginx 1.8 and i put the permissions to 777

can someone help me??



92

What did you put the permissions to 777 for? index.php or the cache folder?



1.6k

i put cache folder to 777



1.6k
edited May '15

What did you put the permissions to 777 for? index.php or the cache folder? i put cache folder to 777, and i test a native php function file_put_content , it face same issue