Get Started with Bitnami Applications on Oracle Cloud Infrastructure Classic Marketplace

Introduction

Oracle Cloud Infrastructure Classic is an enterprise-grade cloud platform designed for rapid development and deployment of Web applications. With Oracle Cloud Infrastructure Classic, virtual machines and compute/storage infrastructure, business users can host and scale enterprise websites and complex web applications securely and efficiently.

Bitnami provides pre-packaged application images for Oracle Cloud Infrastructure Classic servers, so that you can get productive with your new server immediately. You can access and launch these images in three ways:

In this tutorial, I'll walk you, step by step, through the process of using the Oracle Cloud Infrastructure Classic Marketplace to create and provision a new cloud server.

TIP: To learn about launching servers with the Bitnami Launchpad for Oracle Cloud Infrastructure Classic instead, refer to this tutorial.
NOTE: This guide assumes that you have an Oracle Cloud Infrastructure Classic Account as well as an account in the identity domain for your company, both with the same email address. It also assumes that your identity domain account has sufficient roles or privileges to launch Oracle Cloud Infrastructure Classic instances, including the "Compute Compute Operations" role. If you don't have an Oracle Cloud Infrastructure Classic Account, register for one here. If you don't have an account in the identity domain for your company, contact your network or IT services administrator.

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:

  • Enable service auto-discovery on your identity domain account
  • Deploy WordPress on an Oracle Cloud Infrastructure Classic Server
  • Configure security and obtain WordPress credentials
  • Log in and start using WordPress

The next sections will walk you through these steps in detail.

Step 1: Enable service auto-discovery on your identity domain account

NOTE: At the end of this step, your identity domain account will be configured to deploy applications from Oracle Cloud Infrastructure Classic Marketplace.

To deploy applications from the Oracle Cloud Infrastructure Classic Marketplace on your cloud services, your identity domain account must be configured to automatically discover Oracle Cloud Infrastructure Classic services subscribed to by your company. Follow these steps:

  • Browse to the Oracle Cloud Infrastructure Classic website and select the "Sign In" link.
  • Select the data center associated with your identity domain for the "My Services" application.

    Oracle My Services configuration

  • Enter the identity domain associated with your account.

    Oracle My Services configuration

  • Log in to the "My Services" application with your identity domain account credentials.

    Oracle My Services configuration

  • Once logged in, click the "Preferences" link.
  • In the resulting view, check the box for service discovery and click "Save".

    Oracle My Services configuration

NOTE: If the service discovery checkbox does not appear, verify that you are logged in with the correct identity domain account and try clearing your browser cache. If your identity domain account was recently created or modified, it may take up to an hour for the service discovery checkbox to appear.

Step 2: Deploy the Bitnami WordPress Stack from the Oracle Cloud Infrastructure Classic Marketplace

NOTE: At the end of this step, your WordPress blog will be running on an Oracle Cloud Infrastructure Classic server.

The next step is to launch a cloud server with the Bitnami WordPress application. Please, follow the instructions below:

  • Log in to the Oracle Cloud Infrastructure Classic platform (in case you are not already logged in).
  • Once logged in to the platform, select the "Dashboard" tab and then click the "Open Service console" link for the Oracle Compute Cloud service.

    Oracle Compute Cloud server deployment

  • Select the "Instances" tab in the left panel and then click the "Create Instance" button.

    Oracle Compute Cloud server deployment

  • On the "Image" page, select the "Marketplace" option. On the resulting page, type "wordpress" in the search box, and then click "Select" to launch the Bitnami WordPress latest image.

    Oracle Compute Cloud server deployment

  • When you install an image for the first time, you need to Accept the Oracle Standard Terms and Restrictions. Then click "Install" to complete the image installation process.

    Oracle Compute Cloud server deployment

  • Once the Bitnami Wordpress Image has been installed, the application will appear as selected.

    Oracle Compute Cloud server deployment

  • The next step is to select the processor and memory size of your instance. Once you have selected the shape, click "Next" to continue.

    NOTE: You can choose from a "oc3" instance (1 OCPU) to a "oc5m" instance (16 OCPU with high memory).

    Oracle Compute Cloud server deployment

    TIP: An "oc3" server will work just fine for a low-traffic WordPress blog or for WordPress development.
  • On the "Instance" page enter the following values:

    • Server name
    • Label
    • Description
    • Tags
    • SSH Keys: you can choose a previously-loaded SSH public key from the list of available keys, or add a new one with the "Add SSH Public Key" option.
    NOTE: If adding a new SSH Public Key, note that you will need to create the new key separately and only enter the public key content in the "Value" field, in either OpenSSH or RFC4716 format.

    Oracle Compute Cloud server deployment

  • On the "Network" page, follow these steps to allow access to your machine:

    • Set the "Public IP Address" field to "Auto Generated"
    • A "Security List" must be attached to the instance in order to open the ports the application. You can choose a previously-loaded security list, or add a new one clicking on "Create Security List".

    Oracle Compute Cloud server deployment

    NOTE: If you want to create a new one, set the name of the security list and click on Create.

    Oracle Compute Cloud server deployment

  • Confirm that the Security List is attached to the instance before continue.

    Oracle Compute Cloud server deployment

  • On the "Storage" page, you will see that your instance includes a a 10GB bootable storage by default. You can attach an existing volume or create a new storage by clicking on the "Add New Volume" button and entering a name and size in GB. Remember to check the "Boot Drive" option if you want a bootable storage.

    Oracle Compute Cloud server deployment

  • Review your settings and confirm your selections by hitting the "Create" button.

    Oracle Compute Cloud server deployment

The system will now begin spinning up the new server. The process usually takes a few minutes. You can see the status of your new application in the "Instances" page of the Oracle Compute Cloud service console.

Oracle Compute Cloud server deployment

Once the cloud server has been provisioned, the status of the instance will change to "Running".

Oracle Compute Cloud server deployment

Step 3: Configure security and obtain WordPress credentials

NOTE: At the end of this step, your WordPress blog will be configured for public access and you will have the credentials needed to log in to it.

Unless you chose to deploy the server using a custom security list with support for inbound connections, all server ports will be closed for inbound connections.

Follow these steps to enable inbound connections using a new security list:

  • Log in to the "My Services" application (in case you are not already logged in).
  • Once logged in, select the "Dashboard" tab and then click the "Open Service console" link for the Oracle Compute Cloud service.

    Oracle Compute Cloud server deployment

  • Select the instance from the "Instances" page of the Oracle Compute Cloud service console.
  • On the "Instances -> Overview" page, note the name of the security list for the instance.

    Oracle Compute Cloud security configuration

  • Select the "Network -> Security Applications" sub-tab.
  • Click the "Create Security Application" button and create a new security rule for the port you wish to open, by specifying the name, port type and port range. In this example, we will open port 80.

    Oracle Compute Cloud security configuration

  • Click the "Create" button to save the security application.
  • Select the "Network" tab and the "Security Rules" sub-tab.
  • Click the "Create Security Rule" button and create a new security rule and attach it to the security list for the server using the following inputs:

    • Name: Enter a descriptive name. Include the server name to make it easier to identify the association between the server and the rule later.
    • Security Application: Choose the security application created previously.
    • Source: Select the "Security IP List" option and the "public-internet" IP list.
    • Destination: Select the security list for the server, as obtained from the instance detail page earlier.

    Oracle Compute Cloud security configuration

  • Click the "Create" button to save the security rule.

Your security rule comes into effect immediately without any need to restart the server.

At this point, you should be able to browse to the cloud server, by entering the cloud server IP address directly into your browser's address bar. You should now see your WordPress blog's home page with a sample post, as shown below.

WordPress home page

You're almost done but, before you can log in to WordPress, you need the administrator credentials. Follow these steps:

  • To get the administrator username, browse to the cloud server IP address in your web browser to access your application, and click the Bitnami badge on the bottom right corner of the page. The resulting page shows the application username.

    WordPress credentials

  • To get the administrator password, log in to the server via SSH using these instructions. Then, at the server console, run the following command:

       $ sudo grep -F '#' /var/log/boot.log?
    

The output of the command displays the administrator password.

Step 4: 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.

    WordPress credentials

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.

WordPress credentials

You can now add a new post using the following steps:

  • Select the "Posts -> Add New" menu option to create a new post.

    Add new WordPress 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.

    Add new WordPress post

And now, when you visit your blog's front page, you should see your new post.

WordPress post publishing

Congratulations! You now have a working, fully-functional WordPress blog in the cloud.

You can keep your WordPress installation up-to-date with the WordPress automatic update feature. To access this:

  • Log in to WordPress using the administrator account.
  • Select the "Dashboard -> Updates" menu item.

    WordPress update

  • 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.

    WordPress update

To learn more about the topics discussed in this tutorial, use the links below:

oracle

Bitnami Documentation