One place for hosting & domains

      OneClick

      How to Deploy cPanel with One-Click Apps


      Updated by Linode

      Contributed by
      Linode

      The cPanel & WHM One-Click App streamlines publishing and managing a website on your Linode. cPanel & WHM is a Linux based web hosting control panel and platform that helps you create and manage websites, servers, databases, and more, with a suite of hosting automation and optimization tools.

      Linode Options

      Provide configurations for your Linode server. The table below includes details about each configuration option.

      Configuration Description
      Select an Image CentOS 7 is currently the only image supported by the cPanel One-Click App, and it is pre-selected on the Linode creation page. 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. cPanel recommends, at minimum, 2 GB of RAM and 40 GB of disk space. This means you should select a 2 GB Linode plan to meet the minimum requirements. See cPanel’s system requirements documentation for in-depth details. You can always resize your Linode to a different plan later if you feel you need to increase or decrease your system resources. 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.
      Add Tags A tag to help organize and group your Linode resources. Tags can be applied to Linodes, Block Storage Volumes, NodeBalancers, and Domains.
      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 cPanel app will complete installation approximately 15 minutes after your Linode has finished provisioning.

      Getting Started after Deployment

      Access your cPanel Web Hosting Manager

      1. Once your cPanel app has finished its installation, open a browser and navigate to http://192.0.2.0:2087/. Replace 192.0.2.0 with your Linode’s IP address.

        This will bring you to the Web Hosting Manager (WHM) login page. Enter root as the username and the root password you created when deploying your app. Click the Log In button.

        Log into your Web Hosting Manager

      2. You will be presented with cPanel and WHM’s terms. Read through the terms and click on Agree to All if you agree and would like to continue.

        Agree to cPanel and WHM's terms

      3. You will be prompted to enter in an email address to receive status and error notifications. Enter in your preferred email address.

        You will also be prompted to provide nameserver’s for your cPanel instance to use. By default, cPanel will fill in the values for you. Update the values with the nameservers you would like to use. If you are managing your own nameservers, enter them into the form or, if you will be using Linode’s DNS manager, enter in Linode’s nameservers into the form. Click Finish to complete the initial login process.

        Note

        Linode’s nameservers are the following:

        ns1.linode.com.
        ns2.linode.com.
        ns3.linode.com.
        ns4.linode.com.
        ns5.linode.com.
        

        See our How do I set up DNS on cPanel? community question and answer for details related to cPanel and Linode nameservers.

        Provide an email address and your Linode nameservers.

      4. You will be brought to your WHM’s home page where you can continue to configure your cPanel instance.

        Note

        Your cPanel One-Click App installation will automatically receive a free 15-day trial license. You must purchase a new cPanel & WHM license before the end of this trial period. At the end of your trial period your license will expire.

        cPanel home page

        Now that you’ve accessed your WHM homepage, read cPanel and WHM’s user documentation to learn how to further configure your cPanel instance.

      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

      How to Deploy Redis with One-Click Apps


      Updated by Linode

      Contributed by
      Linode

      Redis is an open-source, in-memory, data-structure store, with the optional ability to write and persist data to a disk, which can be used as a key-value database, cache, and message broker. Redis features built-in transactions, replication, and support for a variety of data structures such as strings, hashes, lists, sets, and others.

      Linode Options

      Provide configurations for your Linode server that will run your Redis installation:

      Configuration Description
      Select an Image Debian 9 is currently the only image supported by Redis One-Click Apps, and it is pre-selected on the Linode creation page. 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. Redis serves all data from memory, we recommend using a high memory Linode plan. Depending on the type of environment (development or production) that you plan to use, your system resources may vary. See Redis’ Hardware Requirements for a detailed overview. You can always resize your Linode to a different plan later if you feel you need to increase or decrease your system resources. 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.
      Add Tags A tag to help organize and group your Linode resources. Tags can be applied to Linodes, Block Storage Volumes, NodeBalancers, and Domains.
      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 Redis app will complete installation anywhere between 2-5 minutes after your Linode has finished provisioning.

      Getting Started after Deployment

      There are several types of Redis deployments you can use, for example, a standalone Redis installation or a Redis cluster with a master and two replicas. As a next step, you should determine which type of deployment you will need for your use case by reviewing the resources provided below.

      • Learn about Redis Clusters by going through their related tutorial.
      • Redis Sentinel is another deployment configuration focused on high availability. See the Redis Sentinel documentation for more details.
      • Read the Redis Quickstart to learn about securing Redis and installing client libraries to use Redis with your applications.
      • Refer to the Redis configuration documentation to learn about the Redis configuration file.

      Once you have determined how you would like to configure your Redis deployment, connect to your Linode via SSH to complete your configuration.

      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

      How to Deploy MySQL/MariaDB with One-Click Apps


      Updated by Rajakavitha Kodhandapani

      Contributed by
      Rajakavitha Kodhandapani

      MySQL One-Click App

      MySQL is an open-source database management system that uses a relational database and SQL (Structured Query Language) to manage its data. In Debian 9, MySQL is replaced with MariaDB as the default database system. MariaDB is an open-source, multi-threaded relational database management system, backward compatible replacement for MySQL. It is maintained and developed by the MariaDB Foundation.

      Deploy a MySQL/MariaDB One-Click App

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

      1. Log in to your Linode Cloud Manager account.

      2. From the Linode dashboard, click on the Create button in the top right-hand side of the screen and select Linode from the dropdown menu.

      3. The Linode creation page will appear. Select the One-Click tab.

      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.

      MySQL/MariaDB Options

      Field Description
      MySQL User The user for your MySQLDB database. Required.
      MySQL Root Password The root password for your MySQL database. Required.
      Create Database The database on your MySQL. Required.

      Linode Options

      Configuration Description
      Select an Image Debian 9 is currently the only image supported by the MySQL One-Click App, and it is pre-selected on the Linode creation page. 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. The Linode plan you deploy your MySQL/MariaDB on should account for the estimated workload. If you are standing up a simple web page, you can use a Nanode or 2GB Linode. If you will deploy a more robust web app, then consider a plan with higher RAM and CPU allocations. 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.

      Getting Started after Deployment

      Access MySQL/MariaDB

      After MySQL has finished installing, you will be able to access MySQL from the console via ssh with your Linode’s IPv4 address:

      1. SSH into your Linode and create a limited user account.

      2. Log out and log back in as your limited user account.

      3. Update your server:

        sudo apt-get update && apt-get upgrade
        

      Using MySQL/MariaDB

      The standard tool for interacting with MySQL is the mysql client which installs with the mysql-server package. The MySQL client is used through a terminal.

      Root Login

      1. To log in to MySQL as the root user:

        sudo mysql -u root -p
        
      2. When prompted, enter the MySQL root password that you set when launching the One-Click App. You’ll then be presented with a welcome header and the MySQL prompt as shown below:

        MariaDB [(none)]>
        
      3. To generate a list of commands for the MySQL prompt, enter h. You’ll then see:

        List of all MySQL commands:
        Note that all text commands must be first on line and end with ';'
        ?         (?) Synonym for `help'.
        clear     (c) Clear command.
        connect   (r) Reconnect to the server. Optional arguments are db and host.
        delimiter (d) Set statement delimiter. NOTE: Takes the rest of the line as new delimiter.
        edit      (e) Edit command with $EDITOR.
        ego       (G) Send command to mysql server, display result vertically.
        exit      (q) Exit mysql. Same as quit.
        go        (g) Send command to mysql server.
        help      (h) Display this help.
        nopager   (n) Disable pager, print to stdout.
        notee     (t) Don't write into outfile.
        pager     (P) Set PAGER [to_pager]. Print the query results via PAGER.
        print     (p) Print current command.
        prompt    (R) Change your mysql prompt.
        quit      (q) Quit mysql.
        rehash    (#) Rebuild completion hash.
        source    (.) Execute an SQL script file. Takes a file name as an argument.
        status    (s) Get status information from the server.
        system    (!) Execute a system shell command.
        tee       (T) Set outfile [to_outfile]. Append everything into given outfile.
        use       (u) Use another database. Takes database name as argument.
        charset   (C) Switch to another charset. Might be needed for processing binlog with multi-byte charsets.
        warnings  (W) Show warnings after every statement.
        nowarning (w) Don't show warnings after every statement.
        
        For server side help, type 'help contents'
        
        MariaDB [(none)]>
        
      4. Grant access to the database that you created when launching the One-Click App for MySQL User. In this example, the database is called webdata, the user webuser, and password of the user is password. Be sure to enter your own password. This should be different from the root password for MySQL:

        GRANT ALL ON webdata.* TO 'webuser' IDENTIFIED BY 'password';
        
      5. To Exit MySQL/MariaDB type:

        exit
        

      Create a Sample Table

      1. Log back in as MySQL User that you set when launching the One-Click App. In the following example the MySQL User is webuser.

        sudo mysql -u webuser -p
        
      2. Create a sample table called customers. This creates a table with a customer ID field of the type INT for integer (auto-incremented for new records, used as the primary key), as well as two fields for storing the customer’s name. In the following example webdata is the database that you created when launching the One-Click App.

        use webdata;
        create table customers (customer_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, first_name TEXT, last_name TEXT);
        
      3. To view the contents of the table that you created:

        describe customers;
        

        The output would be:

        +-------------+---------+------+-----+---------+----------------+
        | Field       | Type    | Null | Key | Default | Extra          |
        +-------------+---------+------+-----+---------+----------------+
        | customer_id | int(11) | NO   | PRI | NULL    | auto_increment |
        | first_name  | text    | YES  |     | NULL    |                |
        | last_name   | text    | YES  |     | NULL    |                |
        +-------------+---------+------+-----+---------+----------------+
        
      4. Then exit MySQL/MariaDB.

        exit
        

      Next Steps

      For more on MySQL/MariaDB, checkout the following guides:

      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