The most important thing is you need your valid amazon login details
Login with the credentials and you will land on the home screen, dont get confused with various options to setup working php mysql application you need a few options.
The first most important thing is to generate a ssh key and import in the console A good guide on how to generate can be found HERE
Once imported name the key you can remember say php or mykey etc I use php.
Next you can go to Elastic Beanstalk section, select launch new environment.
Choose the required parameters the most important is container type
Select the one which suits you for your php mysql I selected 32 bit amazon linux running php 5.3
Check the parameters for most of columns dont change any but to keep the default one
After filling all the details your environment is can be seen on the same screen, wait for the color or environment to change to green which indicates ALL IS WELL…
You are now almost 50% done till this step.
Go to environment url to check the sample code working, some welcome app or sample application screen
If not then there is something wrong and you can check the environment logs or events to check status.
Next go to EC2 section and your newly created instance is waiting for you.
Its now time to access the newly created instance to upload some files.
Allocate one Elastic Ip from the EC2->Elastic IP section to your instance.
In the instance details you can now see the IP allocated. Just to confirm type that IP address in browser and you should see the same app page that was there while checking the environment url.
Next step is set up putty to access the instance.
Convert the generated key in first step to PPK (Putty Private Key) format. An illustrative guide can be found HERE.
For a Quick revision we followed steps as
- Generated key pair
- Created instance with default environment
- Imported keys to ec2 environment
- Edited instance to allocate the IP to allow SSH