Get started with Joomla! on Lightsail
Here are a few steps you should take to get started after your Joomla! instance is up and running on Amazon Lightsail:
Contents
Step 1: Read the Bitnami documentation
Read the Bitnami documentation to learn how to configure your Joomla! application. For
more information, see the Joomla!
Packaged By Bitnami For AWS Cloud
Step 2: Get the default application password to access the Joomla! control panel
Complete the following procedure to get the default application password required to access the control panel for your Joomla! website. For more information, see Getting the application user name and password for your Bitnami instance in Amazon Lightsail.
-
On your instance management page, under the Connect tab, choose Connect using SSH.
-
After you're connected, enter the following command to get the application password:
cat $HOME/bitnami_application_password
You should see a response similar to the following example, which contains the default application password:
Step 3: Attach a static IP address to your instance
The public IP address assigned to your instance when you first create it will change
every time you stop and start your instance. You should create and attach a static IP
address to your instance to ensure its public IP address doesn't change. Later, when you
use a registered domain name, such as example.com
, with your instance, you
don’t have to update your domain’s DNS records every time you stop and start your
instance. You can attach one static IP to an instance.
On the instance management page, under the Networking tab, choose Create a static IP or Attach static IP (if you previously created a static IP that you can attach to your instance), then follow the instructions on the page. For more information, see Create a static IP and attach it to an instance.
Step 4: Sign in to the control panel of your Joomla! website
Now that you have the default application password, complete the following procedure to navigate to your Joomla! website's home page, and sign in to the control panel. After you’re signed in, you can start customizing your website and making administrative changes. For more information about what you can do in Joomla!, see the Step 7: Read the Joomla! documentation and continue configuring your website section later in this guide.
-
On your instance management page, under the Connect tab, make note of the public IP address of your instance. The public IP address is also displayed in the header section of your instance management page.
-
Browse to the public IP address of your instance, for example by going to
http://203.0.113.0
.The home page of your Joomla! website should appear.
-
Choose Manage in the bottom right corner of your Joomla! website home page.
If the Manage banner is not shown, you can reach the sign in page by browsing to
http://
. Replace<PublicIP>
/administrator/
with the public IP address of your instance.<PublicIP>
-
Sign in using the default user name (
user
) and the default password retrieved earlier in this guide.The Joomla! administration control panel appears.
Step 5: Route traffic for your registered domain name to your Joomla! website
To route traffic for your registered domain name, such as example.com
, to
your Joomla! website, you add a record to the domain name system (DNS) of your domain.
DNS records are typically managed and hosted at the registrar where you registered your
domain. However, we recommend that you transfer management of your domain's DNS records
to Lightsail so that you can administer it using the Lightsail console.
On the Lightsail console home page, under the Domains & DNS tab, choose Create DNS zone, then follow the instructions on the page. For more information, see Creating a DNS zone to manage your domain’s DNS records in Lightsail.
After your domain name is routing traffic to your instance, you must complete the following steps to make the Joomla! software aware of the domain name.
-
On the instance management page, under the Connect tab, choose Connect using SSH.
-
Bitnami is in the process of modifying the file structure for many of their blueprints. The file paths in this procedure may change depending on whether your Bitnami blueprint uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and which approach to follow, run the following command after you're connected:
test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."
-
Complete the following steps if the result of the previous command indicated that you should use approach A. Otherwise, continue to step 4 if the result of the previous command indicated that you should use approach B.
-
Enter the following command to open the Apache virtual host configuration file using Vim and create a virtual host for your domain name.
sudo vim /opt/bitnami/apache2/conf/vhosts/joomla-vhost.conf
-
Press
I
to enter insert mode in Vim. -
Add your domain name to the file as shown in the following example. In this example we are using the
example.com
andwww.example.com
domains. -
Press the Esc key, and enter
:wq!
to save your edit (write) and exit Vim. -
Enter the following command to restart the Apache server.
sudo /opt/bitnami/ctlscript.sh restart apache
-
-
Complete the following steps if the result of the previous command indicated that you should use approach B.
-
Enter the following command to open the Apache virtual host configuration file using Vim and create a virtual host for your domain name.
sudo vim /opt/bitnami/apps/joomla/conf/httpd-vhosts.conf
-
Press
I
to enter insert mode in Vim. -
Add your domain name to the file as shown in the following example. In this example we are using the
example.com
andwww.example.com
domains. -
Press the Esc key, and enter
:wq!
to save your edit (write) and exit Vim. -
Enter the following command to confirm that the
bitnami-apps-vhosts.conf
file includes thehttpd-vhosts.conf
file for Joomla!.sudo vim /opt/bitnami/apache2/conf/bitnami/bitnami-apps-vhosts.conf
Look for the following line in the file. Add it if it's missing.
Include "/opt/bitnami/apps/joomla/conf/httpd-vhosts.conf"
-
Enter the following command to restart the Apache server.
sudo /opt/bitnami/ctlscript.sh restart apache
-
If you browse to the domain name that you configured for your instance, you should be redirected to the home page of your Joomla! website. Next, you should generate and configure an SSL/TLS certificate to enable HTTPS connections for your Joomla! website. For more information, continue to the next Step 6: Configure HTTPS for your Joomla! website section of this guide.
Step 6: Configure HTTPS for your Joomla! website
Complete the following procedure to configure HTTPS on your Joomla! website. These
steps show you how to use the Bitnami HTTPS Configuration Tool
(bncert-tool
), which is a command line tool for requesting Let's Encrypt
SSL/TLS certificates. For more information see Learn About The Bitnami
HTTPS Configuration Tool
Important
Before starting with this procedure, make sure that you configured your domain to route traffic to your Joomla! instance. Otherwise, the SSL/TLS certificate validation process will fail.
-
On your instance management page, under the Connect tab, choose Connect using SSH.
-
After you're connected, enter the following command to confirm the bncert tool is installed on your instance.
sudo /opt/bitnami/bncert-tool
You should see one of the following responses:
-
If you see command not found in the response, then the bncert tool is not installed on your instance. Continue to the next step in this procedure to install the bncert tool on your instance.
-
If you see Welcome to the Bitnami HTTPS configuration tool in the response, then the bncert tool is installed on your instance. Continue to the step 8 of this procedure.
-
If the bncert tool has been installed on your instance for a while, then you might see a message indicating that an updated version of the tool is available. Choose to download it, and then enter the
sudo /opt/bitnami/bncert-tool
command to run the bncert tool again. Continue to the step 8 of this procedure.
-
-
Enter the following command to download the bncert run file to your instance.
wget -O bncert-linux-x64.run https://downloads.bitnami.com/files/bncert/latest/bncert-linux-x64.run
-
Enter the following command to create a directory for the bncert tool run file on your instance.
sudo mkdir /opt/bitnami/bncert
-
Enter the following command to make the bncert run a file that can be executed as a program.
sudo chmod +x /opt/bitnami/bncert/bncert-linux-x64.run
-
Enter the following command to create a symbolic link that runs the bncert tool when you enter the sudo /opt/bitnami/bncert-tool command.
sudo ln -s /opt/bitnami/bncert/bncert-linux-x64.run /opt/bitnami/bncert-tool
You are now done installing the bncert tool on your instance.
-
Enter the following command to run the bncert tool.
sudo /opt/bitnami/bncert-tool
-
Enter your primary domain name and alternate domain names separated by a space as shown in the following example.
If your domain is not configured to route traffic to the public IP address of your instance, the
bncert
tool will ask you to make that configuration before continuing. Your domain must be routing traffic to the public IP address of the instance from which you are using thebncert
tool to enable HTTPS on the instance. This confirms that you own the domain, and serves as the validation for your certificate. -
The
bncert
tool will ask you how you want your website's redirection to be configured. These are the options available:-
Enable HTTP to HTTPS redirection - Specifies whether users who browse to the HTTP version of your website (i.e.,
http:/example.com
) are automatically redirected to the HTTPS version (i.e.,https://example.com
). We recommend enabling this option because it forces all visitors to use the encrypted connection. TypeY
and press Enter to enable it. -
Enable non-www to www redirection - Specifies whether users who browse to the apex of your domain (i.e.,
https://example.com
) are automatically redirected to your domain'swww
subdomain (i.e.,https://www.example.com
). We recommend enabling this option. However, you may want to disable it and enable the alternate option (enablewww
to non-www
redirection) if you have specified the apex of your domain as your preferred website address in search engine tools like Google's webmaster tools, or if your apex points directly to your IP and yourwww
subdomain references your apex via a CNAME record. TypeY
and press Enter to enable it. -
Enable www to non-www redirection - Specifies whether users who browse to your domain's
www
subdomain (i.e.,https://www.example.com
) are automatically redirected to the apex of your domain (i.e.,https://example.com
). We recommend disabling this, if you enabled non-www
redirection towww
. TypeN
and press Enter to disable it.
Your selections should look like the following example.
-
-
The changes that are going to be made are listed. Type
Y
and press Enter to confirm and continue. -
Enter your email address to associate with your Let's Encrypt certificate and press Enter.
-
Review the Let's Encrypt Subscriber Agreement. Type
Y
and press Enter to accept the agreement and continue.The actions are performed to enable HTTPS on your instance, including requesting the certificate and configuring the redirections you specified.
Your certificate is successfully issued and validated, and the redirections are successfully configured on your instance if you see a message similar to the following example.
The
bncert
tool will perform an automatic renewal of your certificate every 80 days before it expires. Repeat the above steps if you wish to use additional domains and subdomains with your instance, and you want to enable HTTPS for those domains.You are now done enabling HTTPS on your Joomla! instance. Next time you browse to your Joomla! website using the domain you configured, you should see that it redirects to the HTTPS connection.
Step 7: Read the Joomla! documentation and continue configuring your website
Read the Joomla! documentation to learn how to administer and customize your website.
For more information, see the Joomla!
Documentation
Step 8: Create a snapshot of your instance
After you configure your Joomla! website the way you want it, create periodic snapshots of your instance to back it up. You can create snapshots manually, or enable automatic snapshots to have Lightsail create daily snapshots for you. If something goes wrong with your instance, you can create a new replacement instance using the snapshot. For more information, see Snapshots.
On the instance management page, under the Snapshot tab, choose Create a snapshot or choose to enable automatic snapshots.
For more information, see Creating a snapshot of your Linux or Unix instance in Amazon Lightsail or Enabling or disabling automatic snapshots for instances or disks in Amazon Lightsail.