Hosting A PHP Web Application On AWS
Overview
Process (rough notes)
From the AWS Management Console home page > Build a solution group, click on Build a web app, which is a path to creating a new Elastic Beanstalk instance.
-- OR --
AWS Management Console > Services > Compute > Elastic Beanstalk.
Create New Application at the upper right.
Once the application is created, navigate to its management page, Actions dropdown (upper right) > Create environment
Select environment tier: Web server environment. Then click Select
- Environment name: appropriate token for the environment
- Domain: leave blank
- Platform: PHP, Python, Docker, etc.
- Applciation code: Upload your code
- In the next dialog there is an option to use a Public S3 URL, which might be simpler to maintain with Git, etc.? No, this process only accepts zip files, so using an S3 bucket would mean that there is a zip archive located at the URL. Also, Git is an option, but only after using Git to archive a repo.
- Version label: Include some indication of version in the token, e.g. version number or date.
- Click Create Environment to create and launch the new environment. This will create a new EC2 instance.
Once the environment is launched a url will be available that can be used to view the web site.
Subdomains
Create subdomains as separate environments under the common EB application.
Configuration
From the EB on the the EB instance to view its properties.
Notifications - Enter an email address to receive notifications.
Pricing
TK