I’m trying to automate the setup of my Symfony2 Application using the .ebextensions *.config files but its failing when I try to execute a chmod. This is my first time on AWS so I’ve hit a bit of a wall
Here is the config of my symfony.config file in .ebextensions:
command: chmod -fR 777 /var/app/current/app/cache
command: chmod -fR 777 /var/app/current/app/logs
command: php /var/app/current/app/console doctrine:schema:update --env=prod --force
command: php /var/app/current/app/console assetic:dump --env=prod --no-debug
command: php /var/app/current/app/console cache:clear --env=prod --no-debug
I can run all of those commands on CLI when I ssh in. When I review the logs I get the following which isn’t very helpful
Error occurred during build: Command 01_chmod_cache failed
I think it might have something to do with the user thats executing commands but I don’t know where I can configure this
Can anyone assist ?
Maybe adding quotes to your commands will help:
command: "chmod -fR 777 /var/app/current/app/cache"