Hi I am completely new to EC2 and new to server admin and have been working on a windows 2003 server with our current web application made with PHP pages, mySQL database, and serving image files from a single standalone windows 2003 server.
I would like to know how to go about 'packing up' our server and installing it as an image on Amazon Web Services.
Is there an easy way to do this or do I need to rebuild on amazon. Is there a base Windows image with PHP & MySQL already installed?
I have gone through the process of signing up and have connected to server using Remote Desktop Connection. I am used to working with server files in dreamweaver, how would i go about using dreamweaver to connect to EC2 server?
Anyone know of some good tutorials for this?
many thanks
Start the web server with the command shown following. You can test that your web server is properly installed and started. To do this, enter the public Domain Name System (DNS) name of your EC2 instance in the address bar of a web browser, for example: http://ec2-42-8-168-21.us-west-1.compute.amazonaws.com .
This is the list of Windows Images. I couldn't find one with what you are asking, so you need to start from an existing one (better to start with one that has IIS already installed) and then install PHP and MySQL yourself. Then you could save this as your base image and use it for all your subsequent deployments.
However, the infrastructure you are describing doesn't fit well with a Cloud environment. At first, MySQL or any other relational database isn't a suitable persistence mechanism. It is not guaranteed that your instance will not go away, and if that does happen, then all data stored in the local file system will be lost. You can only safely use MySQL by employing Elastic Block Storage. This is another consideration for you.
For the same reason, it is not recommended to use a simple image to serve files. Amazon offers S3 service, which is great on this respect.
As a conclusion, deploying in a Cloud environment is different than deploying in dedicated servers. You need a different architecture, not just to reproduce your installations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With