php.ini making changes

In the ".ebextensions" folder create a config file or add to your existing config file.  In this example the config file is called "project.config" (the name doesn't actually matter) Add the following to it: files: "/etc/php.d/project.ini" : mode: "000644" owner: root group: root content: | upload_max_filesize = 64M post_max_size = 64M Note you must uses […]

Read More

cron scheduled tasks

Create CRON Task For Web Server Environment Example  Yes you can create cron tasks in the web server environment which can be handy when you want to do background things you'd otherwise have to spin up a worker environment to do (at extra running cost).  You can create them in worker environments too but there's a simpler […]

Read More

File locations

Your zipped up application files During deployment: /tmp/deployment/application folder Once running: /var/app/current This is for boith worker and web server environments.  A good way to prove it is to use this php in a page: die("All done, path to api: " . getcwd(). ", PHP executible path: " . PHP_BINDIR); Logs /var/log/

Read More

FTP into an Elastic Beanstalk environment

Elastic Beanstalk isn't designed for FTP because the point of it is that it can create and dump instances whenever it needs and when an instance is dumped everything in it is lost.  If you need to FTP then its better to use a EC2 instance

Read More

Set Up A PHP Environment

Set up a new PHP environment Open the Elastic Beanstalk console. You can see any existing application environments you have already set up. Select 'Create New Application' Name your applciation an then decide if its to be a web server or worker environment Select Predefined Configuration: PHP N.B. If you don't want the default PHP […]

Read More