One place for hosting & domains

      OneClick

      How To Use the WordPress One-Click Install on DigitalOcean


      Introduction

      WordPress is one of the most popular content management and blog platforms in the world, allowing you to create and manage website content efficiently.

      This tutorial will share all the details you need to get your WordPress site set up using the WordPress 1-Click App.

      Software Included

      In addition to the features installed in a regular Ubuntu 20.04 Droplet, the WordPress 1-Click image also includes the following components:

      • Apache: The most widely used web (HTTP) server.

      • MySQL: A commonly used open-source relational database.

      • PHP: PHP language support.

      These components create the LAMP stack, a group of open source software typically installed together to enable a server to host dynamic websites like WordPress. The term LAMP is an acronym that represents the configuration of a Linux operating system with an Apache web server, with site data stored in a MySQL database and dynamic content processed by PHP.

      To improve security, the following additional components are included:

      • UFW: A program to simplify the management of a firewall.
      • fail2ban: A service that automatically updates your firewall configuration to block attackers.

      In this tutorial, we’ll create a WordPress 1-Click Droplet, then explain how to set up your WordPress site, configuring the domain and sharing information on how to access the MySQL database.

      Step 1 — Creating A WordPress Droplet

      To create a WordPress Droplet from the 1-Click App page, press the Create WordPress Droplet button:

      Create WordPress Droplet

      This takes you to the Create Droplets page, where you can customize your settings before creating your WordPress Droplet. How to Create your First Droplet describes each choice in detail. Below, we’ll highlight key settings:

      Choose an image:

      If not already set, you’ll need to switch from the Distributions tab to the Marketplace tab:

      Choose image tab

      Once there, WordPress 5.5.1 on Ubuntu 20.04 should be automatically selected. If not, click “WordPress 5.5.1 on Ubuntu 20.04” to select it as the image.

      Once the image is highlighted, you can accept the defaults or adjust settings according to your use case. We recommend the following changes:

      Choose a plan:

      Choose the size you need here — WordPress One-Click Droplets require 1GB of RAM or more.

      Add block storage:

      Learn more about block storage and add this to your droplet based on your use case.

      Choose a datacenter region:

      Generally, choose the data center closest to your user base.

      Select additional options:

      We recommend selecting Monitoring, a free service that will help you follow Droplet resource usage over time. You may also want to consider enabling automated backups. You can enable this now or anytime in the future.

      Choose a hostname:

      You can make it easier to identify the Droplet by naming it “WordPress,” or naming it after the site you plan to host.

      When you’ve made your choices, click Create Droplet.

      Once the Droplet is created, its address will be displayed:

      Copy address

      Click the address to copy it to your clipboard. In the next step, we’ll use this to view the WordPress site.

      Step 2 — Checking the Placeholder Page

      Open a web browser and paste the Droplet’s IP address into the location bar to visit your new site. Until you log in with SSH, the following page will appear:

      Before logging in with SSH

      This security measure has been put in place to protect the initial configuration of WordPress, in which the administrative user is set up.

      You can safely leave the installation in this state until you are ready to configure WordPress.

      Step 3 — Accessing the Droplet via SSH to Enable Configuration

      To remove the placeholder web page, you’ll first need to connect to the Droplet via SSH. Once you connect, it’s important to complete the WordPress configuration promptly. Until you do, anyone who finds your site could create the administrative user and password.

      To begin, you’ll connect directly to the server from the command line— you’ll need to complete this task once in order to configure WordPress. If you haven’t used a terminal program like SSH or PuTTY before, check out How To Connect To Your Droplet with SSH.

      When you’re ready, open a terminal on your computer and log into your Droplet as root (or your administrative user) via SSH with this command (substitute with your Droplet’s IP address):

      • ssh root@droplet.ip.address

      After the first successful SSH login, you’re ready to set your administrative password and configure WordPress.

      Note:
      You will be prompted to enter your administrative details on the terminal after logging in via SSH or temporary password. You can follow the terminal instructions to finish configuring WordPress, or use the graphical user interface configuration process that’s explained in the next step.

      Step 4 — Configuring WordPress

      After WordPress installation has been enabled by logging into the Droplet via SSH, visit the Droplet’s IP address in a web browser. You should see the following page:

      Screenshot showing the WordPress logo and a list of language

      Follow the on-screen prompts to select the language, give the site a name, and configure its administrative user. Be sure to set a strong password for added security.

      Once you have completed the initial configuration, you can log in as the administrative user you just created and continue to set up your site.

      Step 5 — Configuring a Domain

      To use a domain name instead of the IP address of your Droplet, follow the steps in How To Set Up a Host Name with DigitalOcean or set up a domain name with your own DNS provider. Either way you connect your domain name to your WordPress Droplet, once it resolves using DNS, you will need to update the WordPress configuration to use the domain.

      Log in to your WordPress admin panel at http://DROPLETIPADDRESS/wp-admin using the admin account you created earlier. Click on General under Settings in the navigation bar on the left-hand side of the page. Here, you will see several options you can configure for your site. Update the WordPress Address (URL) and Site Address (URL) fields to reflect your new domain name and click Save Changes.

      Configure to use domain name

      You can customize your site’s appearance, install plugins for added functionality, or create a new post or a page.

      Step 6 — Locating Logins and Passwords

      Additional details of your installation are provided in the MOTD (Message of the Day) which is displayed when you log into your Droplet via SSH:

      -------------------------------------------------------------------------------
      Welcome to DigitalOcean's One-Click WordPress Droplet.
      To keep this Droplet secure, the UFW firewall is enabled.
      All ports are BLOCKED except 22 (SSH), 80 (HTTP), and 443 (HTTPS).
      -------------------------------------------------------------------------------------
      

      If you need to access your MySQL database server you can find your MySQL root user password in the /root/.digitalocean_password file with the following command:

      • cat /root/.digitalocean_password

      Output

      root_mysql_pass="c404aed5e912278adb4EXAMPLE9782f390286d706a9c4f72" wordpress_mysql_pass="619863e454cEXAMPLE15be13d9730db5c0a52ad6a4d2491a"

      Copy the password, located inside the quotation marks on the line that begins root_mysql_pass. Next run the mysql command with the -u flag to specify a user (root) and the -p flag to be prompted for the password as follows:

      mysql -u root -p
      

      When prompted, paste in the password you copied.

      If you prefer to use a graphical user interface, follow the tutorial How To Install and Secure phpMyAdmin on Ubuntu 18.04.

      Conclusion

      Your WordPress site should be up and running. You can enhance its security by following our Initial Server Setup guide to give sudo privileges to your user, lock down root login, and take other steps to make your Droplet ready for production.



      Source link

      How to Deploy Percona Monitoring and Management (PMM) with One-Click Apps


      Updated by Linode

      Contributed by
      Linode

      Marquee image for How to Deploy Percona Monitoring and Management (PMM) with One-Click Apps

      Percona (PMM) One-Click App

      Percona Monitoring and Management (PMM) is an open-source tool which provides a GUI powered by Grafana for monitoring and managing MySQL, MariaDB, PostgreSQL, and MongoDB databases. You can use PMM to easily observe important metrics, logging, and statistics related to your databases and the hosts they run on. Additionally, it includes a number of tools which can help to optimize your database’s performance, manage all database instances, and track and identify potential security threats. Linode’s Percona (PMM) One-Click App deploys a Linode with PMM installed and ready for you to begin monitoring your databases.

      PMM Architecture Overview

      The PMM tool uses a client-server model which makes it easy to scale monitoring across several databases hosted on various remote hosts. See the table below to better understand how each PMM component fits into the context of Linode’s Percona (PMM) One-Click App.

      Component Description
      PMM Server The Percona (PMM) One-Click App deploys an instance of the PMM Server, which includes the Grafana web interface to visualize all the data collected from the databases it monitors.
      PMM Client You will need to install the PMM Client on any Linode that hosts a database that you would like to monitor. The PMM Client will help you connect to the PMM Server and relay host and database performance metrics to the PMM Server.

      Note

      Deploy a Percona (PMM) One-Click App

      Linode’s One-Click App Marketplace allow you to easily deploy software on a Linode using the Linode Cloud Manager. To access Linode’s One-Click App Marketplace:

      1. Log in to your Linode Cloud Manager account.

      2. From the Linode dashboard, click on the Marketplace button in the left-hand navigation menu.

      3. The Linode creation page will appear, with the One-Click and Marketplace tabs pre-selected.

      4. Under the Select App section, select the app you would like to deploy:

        Select a One-Click App to deploy

      5. Once you have selected the app, proceed to the app’s Options section and provide values for the required fields.

      Percona (PMM) Options

      Configuration Description
      Hostname The hostname to assign to your new Linode. Required.

      Linode Options

      The following configuration options are possible for your Linode server:

      Configuration Description
      Select an Image Debian 10 and Ubuntu 20.04 are currently the only images supported by the Percona (PMM) One-Click App. Required.
      Region The region where you would like your Linode to reside. In general, it’s best to choose a location that’s closest to you. For more information on choosing a DC, review the How to Choose a Data Center guide. You can also generate MTR reports for a deeper look at the network routes between you and each of our data centers. Required.
      Linode Plan Your Linode’s hardware resources. Percona recommends roughly 1 GB of storage on your PMM Server for each database node you would like to monitor. For more information on Percona’s system requirements see their official documentation. If you decide that you need more or fewer hardware resources after you deploy your app, you can always resize your Linode to a different plan. Required.
      Linode Label The name for your Linode, which must be unique between all of the Linodes on your account. This name will be how you identify your server in the Cloud Manager’s Dashboard. Required.
      Root Password The primary administrative password for your Linode instance. This password must be provided when you log in to your Linode via SSH. It must be at least 6 characters long and contain characters from two of the following categories: lowercase and uppercase case letters, numbers, and punctuation characters. Your root password can be used to perform any action on your server, so make it long, complex, and unique. Required.

      When you’ve provided all required Linode Options, click on the Create button. Your PMM app will complete installation anywhere between 1-5 minutes after your Linode has finished provisioning.

      Software Included

      The Percona (PMM) One-Click App will install the following required software on your Linode:

      Software Description
      Docker Docker is used to containerize PMM.
      Grafana Grafana is the visualization tool used by PMM to provides charts, graphs, and alerts for the databases that are being monitored.
      pmm-admin pmm-admin is a command-line tool used to manage PMM Clients.

      Note

      Currently, Linode does not manage software and systems updates for One-Click Apps. It is up to the user to perform routine maintenance on software deployed in this fashion.

      Getting Started after Deployment

      Access your PMM Server’s Grafana Dashboard

      After the PMM Server has finished installing, you will be able to access its Grafana dashboard over http:// and your Linode’s IPv4 address. To find your Linode’s IPv4 address:

      1. Click on the Linodes link in the sidebar. You will see a list of all your Linodes.

      2. Find the Linode you just created when deploying your app and select it.

      3. Navigate to the Networking tab.

      4. Your IPv4 address will be listed under the Address column in the IPv4 table.

      5. Copy and paste the IPv4 address into a browser window. Ensure you are using http://.

      6. You will see the PMM Home Dashboard actively monitoring your server:

        Percona Home Page

      Installing the PMM Client

      To begin monitoring a database node, you will need to install the PMM Client on the Linode that hosts your database and connect the node to the PMM Server.

      Note

      The PMM Server deployed with Linode’s Percona (PMM) One-Click App is compatible with PMM Client version 1.
      1. Connect to your Linode via SSH.

      2. Update your system’s software.

        Debian or Ubuntu:

        sudo apt-get update && apt-get upgrade
        

        CentOS:

        sudo yum update
        
      3. Install the PMM Client (version 1):

        Debian or Ubuntu:

        sudo apt-get install pmm-client
        

        CentOS:

        sudo yum install pmm-client
        
      4. Connect your database node to the PMM Server. Replace 192.0.2.0 with your PMM Server’s IPv4 address.

        Note

        sudo pmm-admin config --server 192.0.2.0
        

        Once complete, you should see a similar output:

          
        OK, PMM server is alive.
        
        PMM Server      | 192.0.2.0
        Client Name     | li222-111
        Client Address  | 192.0.2.1
              
        

      Monitor a Database Instance

      Once your database node and your PMM Server are communicating, the final step is to add your database instance to be monitored by your PMM Server. These steps are completed on your Database node.

      1. Connect to your Linode via SSH.

      2. Add your database instance to be monitored by your PMM Server. This command will add a MySQL database instance to be monitored. You can replace mysql with the database type that your node is hosting (i.e. postgresql or mongodb). See Percona’s Managing PMM Client documentation for details.

        pmm-admin add mysql
        

        Your Percona dashboard should now be monitoring your MySQL service.

        https://www.linode.com/perconafinal.png

        Note

      Next Steps

      The Percona Monitoring Management Tool is very powerful and can be configured to monitor and display various pieces of your database instances. Once you have completed the basic configurations outlined in this guide, you should review Percona’s documentation to learn more about the PMM tool. Here are some suggested topics:

      This guide is published under a CC BY-ND 4.0 license.



      Source link

      How to Deploy Nextcloud on Linode with One-Click Apps


      Updated by Linode

      Contributed by
      Linode

      Installing Nextcloud OCA

      Nextcloud is an open source solution to file hosting and sharing. With Nextcloud, you can synchronize files from a local computer to the Linode server and share them with collaborators. Nextcloud’s customizable security features and intuitive user interface help to keep files safe and easy to manage.

      Before You Begin

      While a Domain Name is not strictly required, it is recommended. If you plan to use a domain name for the deployment, complete the following steps:

      1. Create a Linode API v4 access token. The Nextcloud One-Click App needs a Linode API v4 token to create a domain name system (DNS) record for the Nextcloud instance.

      2. Register (purchase) a domain name.

      3. Set the domain name to use Linode’s name servers. You need to do this on the domain registrar’s website and then wait up to 24 hours for the change to take effect.

      Deploy a NextCloud One-Click App

      Linode’s One-Click App Marketplace allow you to easily deploy software on a Linode using the Linode Cloud Manager. To access Linode’s One-Click App Marketplace:

      1. Log in to your Linode Cloud Manager account.

      2. From the Linode dashboard, click on the Marketplace button in the left-hand navigation menu.

      3. The Linode creation page will appear, with the One-Click and Marketplace tabs pre-selected.

      4. Under the Select App section, select the app you would like to deploy:

        Select a One-Click App to deploy

      5. Once you have selected the app, proceed to the app’s Options section and provide values for the required fields.

      NextCloud Options

      Field Description
      MySQL database root password The root user’s password for the Nextcloud database. Required.
      MySQL user password Your new MySQL user’s password. Required.

      Advanced Options

      LAMP Stack Options
      Field Description
      MySQL database username The name of a new MySQL user to create. If no value is provided, the user is named nextcloud. Required.
      MySQL database name The name to assign to the Nextcloud instance’s MySQL database. If no value is provided, the database is named nextcloud. Required.
      Linode Server Security Options
      Field Description
      Linode limited sudo username The username for a new limited user account with sudo privileges. Advanced Configuration.
      Linode limited user password The password for the new limited user account. Advanced Configuration.
      SSH Public Key A public key belonging to the user that accesses the Linode. If you do not have an authentication key-pair see the Securing Your Server guide for steps on creating one. Advanced Configuration.
      Enable passwordless sudo Enable passwordless sudo access for the limited user account. Advanced Configuration.
      Disable root access Disable root user access for the Linode server. Advanced Configuration.
      Domain Options
      Field Description
      Linode API v4 token The Linode API v4 token is required to create a domain name system (DNS) record for the Nextcloud instance. See the Getting Started with the Linode API guide to learn how to generate an API token. Advanced Configuration.
      Linode hostname The hostname to assign to the Linode server. If no value is provided, the hostname is set as nextcloud. Advanced Configuration.
      Domain name The domain name to use when creating a DNS record for the Linode. The One-Click app creates a subdomain named nextcloud. You can access the Nextcloud instance using the nextcloud subdomain; for example, www.nextcloud.example.com. Advanced Configuration.
      Admin email address The email address to use for the Nextcloud instance’s admin user. Advanced Configuration.
      Enable SSL Enable a free HTTPS CertBot SSL certificate on the Nextcloud domain. If you do not provide a value, no is set by default. Advanced Configuration.
      Timezone The timezone to use for the Linode server. If you do not provide a value, the Linode data center’s timezone is used. Refer to TZ database names for possible timezone values. Advanced Configuration.

      Linode Options

      After providing the app specific options, provide configurations for the Linode server:

      Configuration Description
      Select an Image Debian 10 is currently the only image supported by the Nextcloud One-Click App, and it is pre-selected on the Linode creation page. Required.
      Region The region where you would like the Linode to reside. In general, it’s best to choose a location that is closest to you. For more information on choosing a DC, review the How to Choose a Data Center guide. You can also generate MTR reports for a deeper look at the network routes between the Linode server and each of our data centers. Required.
      Linode Plan Your Linode’s hardware resources. You should select a Linode plan type based on the amount of data you would like to store on the Nextcloud instance. You can always resize your Linode to a different plan later if you feel you need to increase or decrease the system resources. Required.
      Linode Label The name for the Linode server, which must be unique between all of the Linodes on your account. This name helps you identify the server in the Cloud Manager’s Dashboard. Required.
      Add Tags A tag to help organize and group the Linode resources. Tags can be applied to Linodes, Block Storage Volumes, NodeBalancers, and Domains.
      Root Password The primary administrative password for the Linode instance. This password must be provided when you log in to the Linode using SSH. It must be at least 6 characters long and contain characters from two of the following categories: lowercase and uppercase case letters, numbers, and punctuation characters. The root password can be used to perform any action on the server, so make it long, complex, and unique. Required.

      When you’ve provided all required Linode Options, click the Create button.

      Note

      Your Nextcloud app completes installation anywhere between 5-7 minutes after your Linode has finished provisioning. It is recommended that you wait the full 5-7 minutes prior to beginning the steps in the Getting Started after Deployment section of this guide. You may experience unexpected behavior if you begin those steps while your Nextcloud instance is still being deployed and setup by the One-Click App on the Linode instance.

      Getting Started after Deployment

      Log Into Your Nextcloud Instance

      1. Open a browser window and navigate to the Nextcloud instance’s domain. For example, enter nextcloud.example.com into the browser, replacing example.com with the value of your own domain. If you do not install the App with a domain name, the domain is the public IP address of the Linode appended with a forward slash and “nextcloud. For example, 192.168.17.43/nextcloud/.

      2. Create a Nextcloud admin account by providing values in the presented form.

        Create a Nextcloud admin account.

      3. In the Storage & database section, provide the MySQL database values that you used in the Nextcloud Options section.

        Provide your MySQL database values

      4. Click the Finish setup button to complete the configuration. The set up takes a couple of minutes to complete. The Nextcloud Hub page appears where you can upload files to the Nextcloud server.

        Nextcloud Hub

      Next Steps

      Note

      Currently, Linode does not manage software and systems updates for One-Click Apps. It is up to the user to perform routine maintenance on software deployed in this fashion.

      More Information

      You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.

      This guide is published under a CC BY-ND 4.0 license.



      Source link