Category : ebextensions

In deploying a new app to EB, I found that the .ebextensions files that concern httpd are not being deployed to /etc. The files as such are the same as the ones from another app, like this one: /.ebextensions/cors.config files: /etc/httpd/conf.d/cors.conf: mode: "000644" owner: webapp group: webapp content: | SetEnvIf Origin "^https?://localhost:[0-9]+.*|https?://127.0.0.1[:[0-9]+]?|https://mywebsite.com" REQUEST_ORIGIN=$0 Header always ..

Read more

I am trying to use memcached for PHP on a Amazon Linux EC2 instance. In my PHP script when I call $mc = new Memcached(); the following error gets thrown in /var/log/php-fpm/www-error.log: [06-Sep-2020 00:49:44 UTC] PHP Fatal error: Uncaught Error: Class ‘Memcached’ not found in /var/app/current/memcached.php:8 Stack trace: #0 {main} thrown in /var/app/current/memcached.php on line ..

Read more