ricktbaker / beanstalk-nginx-php-fpm

How to replace apache with nginx and php-fpm on AWS beanstalk
MIT License
74 stars 27 forks source link

Error when setting Environment variable with white space in value - FIX #15

Open omma2289 opened 6 years ago

omma2289 commented 6 years ago

For anyone having trouble setting environment variables using AWS console when the value contains white space, make sure to wrap the value in single quotes like: 'My value with spaces'.

Will include the event entry to make this fix easier to find for others:

[Instance: i-XXXXXXXXXX] Command failed on instance. Return code: 6 Output: nginx: [emerg] invalid number of arguments in "fastcgi_param" directive in /etc/nginx/fastcgi_params_env:3 nginx: configuration file /etc/nginx/nginx.conf test failed. Hook /opt/elasticbeanstalk/hooks/configdeploy/enact/99_reload_app_server.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.