symfony2 - how to switch from “dev” to “prod”?

后端 未结 6 2247
再見小時候
再見小時候 2020-12-04 10:53

I downloaded symfony2 and I am able to run it starting from app_dev.php.

But when I start from app.php, then I get an error page 404.

app.php though is of co

6条回答
  •  醉话见心
    2020-12-04 11:31

    I fixed it with just letting the web-server account (i.e. 'master-chef' own the /Symfony2/app/cache/prod directory. The command as below:

    $sudo chown master-chef -R /var/www/Symfony2/app/cache/prod
    

提交回复
热议问题