Oracle Cloud Infrastructure offers a collection of cloud services designed to manage apps, services and databases, in a high-performance cloud computing environment. Its architecture provides the flexibility to scale. In addition to this, the Oracle Cloud Infrastructure offers you the highly durable storage of public cloud combined with the security, control access, and the cost-effectiveness of on-premises infrastructure.
Bitnami provides pre-packaged application images for Oracle Cloud Infrastructure servers which allow you to use your new server immediately. You can access and launch these images through the Oracle Cloud Infrastructure Marketplace, Oracle's digital platform for software applications or through the Oracle Cloud Infrastructure Console.
In this tutorial, I will walk you through the process of using the Oracle Cloud Infrastructure Console to deploy a Bitnami image on an Oracle Cloud Infrastructure server.
|TIP: To learn more about launching servers with the Oracle Cloud Infrastructure Classic Marketplace, refer to this tutorial.|
|NOTE: This guide assumes that you have an Oracle 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 instances. If you don't have an Oracle 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.|
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, you will learn, step by step, (using WordPress as an example) the complete process of deploying an image on a bare metal server using the Oracle Cloud Infrastructure Console.
The following are the steps you'll complete in this tutorial:
- Get the Bitnami WordPress image from the Oracle Cloud Marketplace
- Import the Bitnami WordPress image to the Oracle Infrastructure Console
- Launch an instance to deploy the Bitnami WordPress image
- Obtain WordPress credentials
- Log in and start using WordPress
Once you've completed these steps, you will have the basic knowledge you need to deploy other Bitnami applications on an Oracle Cloud Infrastructure server.
Step 1: Get the Bitnami WordPress image from the Oracle Cloud Marketplace
|At the end of this step, you will have the URL link of the Bitnami WordPress image ready to use for importing it to the Oracle Cloud Infrastructure Console.|
- Navigate to the Oracle Cloud Infrastructure Marketplace and log in (if not already logged in).
Once you are logged into the platform, in the search box, enter "Bitnami WordPress" and click "Go".
On the resulting screen, select the distribution of the Bitnami WordPress image you want to deploy.
The resulting page is an overview page with detailed information about the application. Click the "Get App" button.
Once you have accepted the Oracle Marketplace terms, you will be redirected to the Bitnami site. Find the URL link of the image you want to deploy. Note it down immediately and save it. You will need it later to import the image to the Oracle Cloud Infrastructure Console.
Step 2: Import the Bitnami WordPress image to the Oracle Cloud Infrastructure Console
|At the end of this step, you will have the Bitnami WordPress image available on the Oracle Cloud Infrastructure Console.|
Log in to the Oracle Cloud Infrastructure Console (if not already logged in).
Once you are logged into the platform, navigate to the "Compute -> Custom Images" section:
On the resulting page, select the compartment in which you want to deploy the image.
Click the "Import Image" button you will find in the top menu:
- On the resulting screen, enter the following information:
- NAME: Enter a name for your image.
- OBJECT STORAGE URL: Paste the URL link you have previously obtained in step 1.
- IMAGE TYPE: Select the QCOW2 option.
- LAUNCH MODE: Select the NATIVE MODE option.
Click "Import Image" to start the process.
You will be redirected to the "Image Details" page. From here, you can check the import process status:
Step 3: Launch an instance to deploy the Bitnami WordPress image
|At the end of this step, you will have a WordPress blog running on an Oracle Cloud Infrastructure server.|
Once the image has been successfully imported, you will see its status change to "Available" in the "Image Details" page. The action buttons, located on the upper side of the page, will appear activated as shown below:
You can also check the status of the image by navigating to the "Compute -> Custom Images" section:
To deploy the image on a bare metal server, follow the steps below:
On the "Image Details" page, click "Launch Instance". A form opens. Specify the server requirements. As you can see in the image below, both the IMAGE SOURCE and the IMAGE fields are preselected and show the values corresponding to your imported image.
Enter the required information. Remember to select the BARE METAL MACHINE option in the SHAPE TYPE field, and to upload your SSH key file in the .pub format. Click "Launch Instance":
Once you have finished, you will be redirected to the "Instance Details" page. Here you will find the status of your server:
When the instance has been launched, you will see its status change to "Running" in the "Instance Details" page:
- Find the server Public IP Address under the "Primary VNIC Information" section. Take note of this IP address to access your application later on:
- Enter the server IP address in your browser. You should see the deployed application:
Step 4: Obtain WordPress credentials
|NOTE: At the end of this step, you will have the credentials needed to access your WordPress blog.|
Your default credentials become available once you launch an instance. To find them, follow these steps:
Navigate to "Compute -> Instances" and click on the instance you want to retrieve the credentials. The resulting page displays the instance details. Take note of the instance's "Public IP Address".
- Connect to your server through SSH.
Open the log file with a text editor:
$ sudo cat /opt/bitnami/var/log/pre-start.log
You will see both the username and password set by default to access your application:
Step 5: 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.
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.
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.
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.
To learn more about the topics discussed in this tutorial, see the links below: