Create a Cloud Instance in Vultr
To create a server in Vultr, follow the below given steps. If you want to learn How to use Vultr to manage your infrastructure in Vultr, You can refer our Vultr cloud guide.
Step 1: Go to Instance Creation Page
Vultr provides lots of different types of cloud instances. From the server creation page, you can create lots of different types of cloud instances, like Regular VMs, Dedicated, Bare Metal, Cloud GPUs and some managed services.
To access the server creation page, log in to your Vultr account and click on the Deploy New Server option from the + button given on the dashboard.
Step 2: Choose Server
You can create 4 different types of cloud instances. They are Optimised cloud compute, Cloud compute, Cloud GPU and Bare Metal. Select the one that fits your requirements.
Step 3: Choose Server Type
Based on your selection of the server in the second step, You will have to select a specific type of server. If you have selected Optimised cloud compute instance, You will see options like the following image.
Step 4: Select Server Location
Location is very important option. Make sure to select a server location closest to your major traffic source demographically. You can select locations in 5 different continents.
Step 5: Select Server Image
In simple terms, Server image is an operating system running on the server. So here, You have to select an OS for your server.
If you are managing your servers with ServerAvatar, Select Ubuntu 20.04 or Ubuntu 22.04.
Step 6: Select Server Size
Here, Select a server size according to your requirements. If you are just getting started with the project, You can start small and then upgrade according to the future requirements.
Step 7: Add Auto Backups and Additional Features
We recommend you to enable auto backups for important websites or apps. If you are creating a temporary server, You can skip the auto backups.
In additional features, You can enable DDOS Protection if needed. Enable other options according to your requirements.
Do not enable "No Public IPv4 Address" option. It will result in a server without IPv4, which is not possible to connect with ServerAvatar.
Step 8: Select an SSH Key
If you use SSH key to authenticate with the server, Select an SSH key in this section. If you haven't uploaded your key yet, You can do it by clicking on the Add New option.
SSH key is not mandatory. If you do not use SSH keys, Ignore this option. You can still connect with server using password.
Step 9: Firewall Group
If you are using Vultr firewall, You can select the firewall group from here.
If you do not have 43210 port enabled in your firewall group, you need to configure it to connect a server with ServerAvatar.
Step 10: Server Hostname and Label
You have to choose the hostname and the label for the server in this step. You can set the same hostname and label. They are used for identification purpose only.
Step 11: Deploy Now!
Finally, click on the Deploy Now button to create a server. It might take a minute or two to fully boot up your server. Once it is ready, You will see it in the Products section in Vultr.
Initial Server Configuration
Now, We have a cloud server with Ubuntu installed. However, To install any application on this server, You need to configure a tech stack on the server. ServerAvatar does that automatically for you, as well as provides you an easy user interface to manage multiple websites on the server without ever touching the command line. You can also connect more servers in a single account to manage sites on them.
To start the initial server configuration, connect with your server via SSH and execute the following commands on your server.
# wget https://srvr.so/install # chmod +x install # ./install
Once the requirements are checked and installation is started, You will see a link to your server panel where you can monitor the further installation on web and install applications on it using an easy to use panel.
Auto-install Moodle with ServerAvatar
Step-1. Create a PHP application
To create a PHP application, access the Application tab from the server panel and click the Create button.
Now fill up the required details in the application form to create an application.
Click on the Create Application button.
If you want to host Moodle LMS on your domain, then make sure to point your domain to the current IP address of your server, and for that:
Log in to your hosting provider site, where you buy your domain. You can check your domain information with one click.
Access DNS Manager to edit your DNS records(contact the support team if you don’t find them)
Change the IP address of A Record of your website to the current server’s IP address.
Step-2 Auto-install Moodle application
On the application panel, click the Auto deploy tab from the sidebar.
Now click on the Moodle Install Now Card from the list of auto-deploying applications.
It asks you to enter details to deploy the Moodle application, which includes-
- Full Name: Full site name displays to your users on the site home page
- Short Name: Site short name
- Summary: A brief description of your course that will appear on your site's home page
- Database Server: Choose the server from the connected server in which you want to host your database
- Database Name: The name of your database
- PHP Version: Select the supported PHP version of Moodle
- Username: Admin username
- Email: Admin Email address
- Password: Admin password
- Support Email: Support email for your user.
Click the Install Now button after filling up all the details.
Access your site URL from the application panel to log in to your Moodle Admin area.