Symfony2 Composer Install

前端 未结 4 2011
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-13 13:20

I am trying to install Symfony 2.1.3 (latest). I am running composer and installs everything okay. The only error that I get is:

Script Sens         


        
4条回答
  •  萌比男神i
    2021-01-13 13:58

    Apache is not related - PHP is called via command line.

    Most likely is the permission in the cache folder: did you check if the user that runs the composer update can actually write the cache folder?

    Try to manually run rm -Rf app/cache/dev (for production environment replace dev with prod) and see if you get any permission error.

    Also you will get this error if the default.timezone setting is not configured in php when running in CLI. To verify just run

    php --info | grep timezone

    and check that the setting date.timezone is correctly configured.

    On the security side, setting 777 to the folder is not the optimal solution - if you have ACL enabled you could use that to correctly set up the permission for the cache and logs folder. Read more at the Symfony2 official installation page

提交回复
热议问题