Friday, 18 February 2011

Host your static website in Amazon S3

This morning Amazon announced a set of new features that make it easy to host static websites on Amazon S3. 1000s of customers already use Amazon S3 to host images, video, and other content for their websites, but until now they have not been able to effectively host their entire website on Amazon S3. That's because even though customers can configure an Amazon S3 bucket as a website, users accessing the root of the website (e.g. would see the list of objects in the Amazon S3 bucket instead of the website's home page. Also, if an error occurred, users would see an Amazon S3 error message instead of a website specific error message. In response to customer requests, Amazon has added support for root and custom error documents to address these issues.

With these new features, Amazon S3 now provides a simple and inexpensive way to host your website in one place. To get started, open the Amazon S3 Management Console, and follow these simple steps:

1) Right-click on your Amazon S3 bucket and open the Properties pane
2) Configure your root and error documents in the Website tab
3) Click Save

For more information on hosting your static website on Amazon S3, review the Amazon S3 Developer Guide.

Thursday, 10 February 2011

Reset your Webmin admin password

Webmin is an awesome tool; super powerful and extremely intuitive. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely. See the standard modules page for a list of all the functions built into Webmin, or check out the screenshots.

However, at some point you might need to reset your password - especially if you want to use Webmin with a Linux server in Amazon EC2.

1. Login as root

2. Run one of these commands based on your distro

* RedHat distribution (Fedora, CentOS):
/usr/libexec/webmin/ /etc/webmin admin newpassword

* Debian distribution:
/usr/share/webmin/ /etc/webmin admin newpassword

* FreeBSD:
/usr/local/lib/webmin/ /usr/local/etc/webmin admin newpassword

3. Login to Webmin with your reset password.

Some guides and great texts about Webmin are:


Wednesday, 9 February 2011

What Linux process is listening?

One of the fastest ways to find out which port/IP your process is listening on is to use netstat. A command line tool that displays network connections and interface stats as well as routing tables.

Example netstat command:
netstat -tulpn

Example netstat output:

[email protected]:/# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *               LISTEN      760/memcached
tcp        0      0*               LISTEN      1468/haproxy
tcp        0      0 *               LISTEN      730/perl
tcp        0      0    *               LISTEN      300/sshd
tcp        0      0*               LISTEN      1468/haproxy
tcp        0      0  *               LISTEN      579/nrpe
tcp6       0      0 :::11211                :::*                    LISTEN      760/memcached
tcp6       0      0 :::22                   :::*                    LISTEN      300/sshd
udp        0      0 *                           620/snmpd
udp        0      0    *                           307/dhclient3
udp        0      0 *                           760/memcached
udp        0      0 *                           1468/haproxy
udp        0      0 *                           730/perl
udp        0      0 *                           620/snmpd
udp6       0      0 :::11211                :::*                                760/memcached

Further, if you want to drill into only HTTP, for example:
netstat -tulpn | grep :80

And we can see HAProxy listening for HTTP traffic on TCP:80:
tcp        0      0*               LISTEN      1468/haproxy

Tuesday, 8 February 2011

Amazon adds CloudFront & Route 53 Edge Location

Today, Amazon announced the addition of a new edge location in Paris, France to serve end users of Amazon CloudFront and Amazon Route 53. With this new location, CloudFront and Route 53 now have a total of 5 edge locations in Europe, and 18 total edge locations worldwide. Each new edge location helps lower latency and improves performance for end users in that region. With further plans to continue adding new edge locations worldwide throughout 2011, this is a very promising and cost effective alternative to traditional CDNs and DNS services.

Monday, 7 February 2011

Amazon SES and your MTA

One very popular question, I am sure, about Amazon SES is "Can my existing SMTP applications deliver email via Amazon SES?". And the simple answer to that is, YES. It can. As long as your MTA isn't IIS+SMTP. But, if you are a Linux user using Postfix or Sendmail you are in luck!

I have not yet tried any of these configs myself, yet. But as soon as I do I will post some help.

Thursday, 3 February 2011

Tuesday, 1 February 2011

AWS to Launch Oracle Edition of Amazon RDS

Today, Amazon announced plans to make Oracle Database 11g available via the Amazon Relational Database Service (Amazon RDS) during the second quarter of 2011. Amazon RDS is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. Amazon RDS for Oracle will include flexible pricing options. If you have existing Oracle licenses, you will be able to apply them to run Oracle Databases on Amazon RDS with no additional software licensing or support charges. If you don't, you'll be able to take advantage of on-demand hourly licensing with no upfront fees or long-term commitments.

With Amazon RDS, you can provision and scale a relational database (and the underlying infrastructure hardware and software) in just minutes using the point-and-click interface of the AWS Management Console. Amazon RDS also manages time-consuming database administration tasks, including continuous backups, software patching, and exposing key operational metrics. Running Oracle Databases on Amazon RDS enables you to extend the ease of use and management capabilities of Amazon RDS to the Oracle Database Software.

While this new Oracle Database offering is not yet available, Amazon is announcing our plans in advance of launch to allow enterprises of all sizes that are interested in Oracle Database to plan for future database deployments. Click here to learn more, sign up to be notified when the service is available, and request contact from an AWS associate to answer your questions or schedule a briefing.

In anticipation of this offering, you can click here to learn more about the benefits of Amazon RDS and deploy a managed MySQL database today. Since the user experience of Amazon RDS will be similar across MySQL and Oracle offerings, this is a great way to get started with Amazon RDS in preparation for the forthcoming Oracle Database offering.