Get Started with Bitnami Cloud Hosting
Introduction
If you’re new to the cloud, the easiest way to get started is with Bitnami Cloud Hosting. Bitnami Cloud Hosting’s user-friendly interface lets you launch Bitnami’s pre-packaged applications on Amazon’s cloud servers in just a few clicks. It makes your cloud hosting experience simple and enjoyable, allowing you to get productive with your new server immediately.
In this tutorial, I’ll walk you, step by step, through the process of using Bitnami Cloud Hosting to create and provision a new Amazon Web Services (AWS) cloud server. And since AWS offers a Free Tier valid for 12 months, you’ll have plenty of time to experiment with your server and Bitnami applications without worrying about being billed for usage.
Overview
If you’re interested in creating a personal or small business blog, chances are that you’re going to use WordPress. WordPress is one of the most popular blogging platforms in the world, used on over 60 million websites (according to Wikipedia). And it is not hard to see why: WordPress is very easy to use, comes with thousands of extensions and themes, is completely free, and is open source.
In this tutorial, I’ll launch a cloud server with the Bitnami WordPress Stack, which gives you a pre-configured WordPress blog that you can start using right way. But WordPress is just an example: there are hundreds of other Bitnami applications to choose from, and they’re all equally easy to set up.
Here are the steps you’ll follow in this tutorial:
- Register with Amazon Web Services (AWS)
- Generate an AWS Access Key and Secret
- Register with Bitnami
- Connect your AWS and Bitnami accounts
- Deploy WordPress with Bitnami Cloud Hosting
- Log in and start using WordPress
The next sections will walk you through these steps in detail.
Step 1: Register with Amazon Web Services (AWS)
- At the end of this step, you will have signed up for the Amazon Web Services free tier. If you already have an Amazon Web Services account, you may skip this step.
You will need an existing Amazon account to log in and sign up. To create it, follow these steps:
- Browse to http://aws.amazon.com and click the “Create an AWS account” button at the top of the page.
In the resulting page, enter an email address, a password, and an AWS account name. Then, click “Continue” to start the registration process.
Once you’ve signed in to Amazon, sign up for AWS by selecting the account type and providing some basic contact information and your mobile phone number.
Once that’s done, proceed to the next stage by entering your credit card information. Click the “Secure Submit” button to continue with the account creation.
If you’re worried about how much you’ll be billed for services, relax. When you first sign up for AWS, you get automatic access to the AWS Free Tier, which entitles you to 12 months of free usage up to certain limits. This includes 750 hours per month of free usage of Amazon EC2 micro servers, which are just right for development or low-traffic website hosting. So long as your usage falls within the limits of the free tier, your credit card will never be billed. However, Amazon still needs your credit card information for security purposes, to avoid service misuse and to confirm your identity.
IMPORTANT: You should fully understand the limits of the AWS free tier to avoid being unduly charged for service usage.
Amazon will now verify your identity, by making an automated call to your mobile phone number and prompting you to enter the PIN number displayed on the screen.
Once your identity is verified, choose the “Basic” support plan (also free) and confirm your account.
NOTE: At this point, make sure that you have subscribed a plan, even if you decide to register for the free tier or “Basic” support plan.
The AWS account registration machine will churn away for a minute or so, and you will then be redirected to a welcome page, which includes a link to the AWS management console. You should also receive an account confirmation email, which tells you that your account is good to go.
Step 2: Generate an AWS Access Key and Secret
- At the end of this step, you will have created an AWS IAM user account and generated an AWS Access Key and Secret.
Once your AWS account has been activated, the next step is to create an AWS Identity and Access Management (IAM) user and generate an AWS Access Key and Secret. You will need this to connect your AWS account with Bitnami.
NOTE: The steps in this section must be performed using your primary (root) AWS account.
To do this:
- Log in to the AWS Console using your primary (root) account credentials.
Click your name in the top right corner and then, in the resulting sub-menu, click the “My Account” link.
On the resulting page, note your Amazon Account Id.
NOTE: Your Amazon Account Id is different from your Amazon Account Number. Your Amazon Account Id is a single number without hyphen.
Click the “Services” link in the top left corner and from the resulting list, select the IAM service.
Select the “Policies” section in the left navigation bar and click the “Create Policy” button.
On the next page, select the “JSON” tab. Enter the following content in the policy editor. Replace the ACCOUNT_ID placeholder with your Amazon Account ID obtained previously.
{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "iam:*", "Resource": "arn:aws:iam::ACCOUNT_ID:user/bitnami-hosting-operators/*" }, { "Effect": "Allow", "Action": [ "sts:GetFederationToken", "ec2:*", "cloudwatch:GetMetricStatistics", "cloudformation:*" ], "Resource": "*" } ] }
Click “Review Policy” to proceed.
On the next page, set the policy name to “BitnamiCloudHosting”. Click “Create Policy” to save the new policy.
Select the “Users” section in the left navigation bar and click the “Add user” button.
On the “Details” page, enter a user name for use with Bitnami. Ensure that the “Programmatic access” checkbox in the “Select AWS access type” section is selected. Click the “Next: Permissions” button to proceed.
On the “Permissions” page, select the option to “Attach existing policies directly”. From the list of policies, find the new “BitnamiCloudHosting” policy. Select it and click the “Next: Review” button.
On the “Review” page, review the selected options and click the “Create user” button.
A new user and corresponding key pair, consisting of an “Access Key ID” and “Secret Access Key”, will be generated and displayed. The “Secret Access Key” value will not be displayed again, so it is important to accurately note down the “Access Key ID” and “Secret Access Key” values displayed on the screen at this point.
Log out of the AWS Console.
Your IAM user account and access keys are now ready for use.
Step 3: Register with Bitnami
- At the end of this step, you will have created a Bitnami account.
The next step is to create a Bitnami account, so that you can launch a cloud server with the Bitnami WordPress Stack. If you have a Google, Facebook, Yahoo! or Github account, you can use your credentials from those services with OpenID to create your Bitnami account.
If you don’t have accounts with those services (or you don’t want to use them), you can use your email address and password to create a Bitnami account, as described below:
- Head to the Bitnami sign-up page.
- Enter your name and email address.
- Choose a password.
- Review the Bitnami terms of service.
Then, use the “Sign up” button to create your account.
Bitnami will send you an email with a verification link which you’ll need to click or browse to, to activate your account. This will also sign you in to your Bitnami account.
Step 4: Connect your AWS and Bitnami accounts
- At the end of this step, your Bitnami Cloud Hosting account will be configured and you will be ready to provision a new cloud server. |
The easiest way to set up your cloud server with the Bitnami WordPress Stack is with the Bitnami Cloud Hosting control panel. However, to do this, you must first connect your AWS and Bitnami accounts.
To do this:
Log in to your Bitnami account if you’re not already logged in.
Browse to https://app.bitnamihosting.com/.
Click the “Access Console” button.
The system will recognize your Bitnami credentials and automatically sign you in.
The next step is to connect your AWS account with your Bitnami account. To do this:
Select “Clouds” in the left navigation menu.
Click the “New” button.
In the resulting dialog box, click the “I already have an AWS account” button.
Enter the “Access Key ID” and “Secure Access Key” from Step 2.
On the same page, enter an administrative password.
This password offers an additional level of protection against misuse: you’ll need to enter it when performing certain operations, such as creating new cloud servers. Make sure you note it down for future reference.
IMPORTANT: Your administrative password is different from your Amazon Web Services password.
Click “Save” to proceed.
NOTE: Refer to the FAQ to change the administrative password.
Your AWS and Bitnami accounts will now be connected and you will see the new account in the list of cloud accounts, as shown below.
You will now be able to launch new servers using Bitnami Cloud Hosting.
Step 5: Deploy WordPress with Bitnami Cloud Hosting
- At the end of this step, your WordPress blog will be running on an AWS cloud server. |
The next step is to launch a cloud server and get WordPress running on it. Bitnami Cloud Hosting lets you do this in just a couple of clicks. Follow these steps:
Select “Servers” in the left sidebar menu.
On the Server Management screen, click “New” and then “Launch Regular Server” to launch a new server.
On the “New Server” screen, review the name and domain name for your server and change them if you wish. You can also change them after the server is launched.
On the “New Server” screen, you should see the default server configuration. Typically, this will be a “Micro” server with Ubuntu and 10 GB EBS storage, which is eligible for the AWS free tier. Should you wish to pay for a more sophisticated server, you can choose from a “Small” server all the way up to an “Extra Large” server depending on the needs of your application. For more information, refer to the AWS pricing sheet.
NOTE: The Bitnami Cloud Hosting dashboard does not yet have the ability to detect whether your AWS servers are in the free tier or not, as Amazon does not provide an API to retrieve this information from AWS. Therefore, it calculates and displays estimated charges for your AWS cloud server as per normal conventions. So long as your usage does not exceed the limits of the AWS free tier, nothing will actually be charged to your credit card and you can safely ignore the estimated charges shown in the Bitnami Cloud Hosting dashboard.
TIP: “Micro” servers work just fine for most PHP application development tasks.
On the “New Server” screen, click the “Select Application” button. In the resulting list, select WordPress version you wish to install and click the “Ok” button to add it to the server configuration.
TIP: By default, an auto-generated password will be set for WordPress.
IMPORTANT: It can only be installed one application per server. If you want to install more than one application, you should create one new server per each application.
- Confirm your selection by hitting the “Build and Launch” button.
Bitnami Cloud Hosting will now begin spinning up the server. The process usually takes a few minutes: a status indicator on the page provides a progress update.
Once the cloud server has been provisioned, the status indicator will show that it’s “running”, and the “Go to Application” button in the lower panel of the dashboard will become an active link.
At this point, you should be able to browse to the cloud server, either by clicking the “Go to Application” button or entering the cloud server’s domain name directly into your browser’s address bar.
You should now see your WordPress blog’s home page with a sample post, as shown below.
By default, the Bitnami Launchpad creates a user account named user and an auto-generated password when a new server is provisioned. You will need this password in order to use WordPress. To do this, go back to the Bitnami Cloud Hosting dashboard, select the new server and click the “Manage” button.
On the “Manage Server” screen, look in the “Properties” tab in the lower panel. Click “Show” to display the application credentials.
TIP: For an alternate method to check the application credentials, go to the Bitnami Cloud Hosting dashboard, select your cloud server from the servers list and click the application name in the “Detai ls” section that is shown at the bottom of the page. Then, click the “Show” link to display the application credentials.
The Bitnami Cloud Hosting dashboard also includes controls to restart, shut down or delete the server. You can also download SSH keys for the server (in .pem and .ppk formats) if you’d like to connect to it directly with an SSH client, like PuTTY on Windows.
Step 6: Log in and start using WordPress
- At the end of this step, you will have logged in to WordPress and created a new blog post.
To log in to the WordPress dashboard, follow these steps:
Browse to the WordPress dashboard, usually at the URL http://SERVER-IP/wp-admin.
Log in with the administrator credentials from the previous step.
You should now arrive at the WordPress dashboard, which allows you to manage posts, pages and comments; customize your blog with themes and plugins; import and export content; manage navigation menus; add or delete new user accounts; and much more.
Create your first post
You can now add a new post using the following steps:
Select the “Posts -> Add New” menu option to create a new post.
Enter a title and content for the post. You can use the formatting tools at the top of the content area to format your post and add hyperlinks or images.
Optionally, choose the format and category for your post.
Publish it immediately using the “Publish” button.
And now, when you visit your blog’s front page, you should see your new post.
Congratulations! You now have a working, fully-functional WordPress blog in the cloud.
Keep your WordPress installation up-to-date
You can keep your WordPress installation up-to-date with the WordPress update feature. To access this:
- Log in to WordPress using the administrator account.
Select the “Dashboard -> Updates” menu item.
Review the resulting page to see if WordPress needs an update. If an update is available, you can install it by clicking the “Update Now” button. You can also re-install WordPress if needed with the “Re-install Now” button.
Useful links
To learn more about the topics discussed in this tutorial, use the links below: