![]() ![]() Once completed, the newly selected timezone will be displayed along with the current time and dpkg-reconfigure tzdataĬurrent default time zone: 'Europe/London'Īlthough you have only just provisioned your new server, it is likely that some software packages are out of date. The following command will allow you to configure the tzdata package: dpkg-reconfigure tzdataĪ simple GUI will be displayed, allowing you to select your geographic area and time zone: This will ensure that the system log files show the correct date and time. To set the server timezone you must configure the tzdata package. ![]() ssh the TimezoneĭigitalOcean will default the new server to the same time zone as the data center region. Once the DNS settings have propagated, if you exit out of the current SSH session you should be able to connect to the server using the new hostname. If you’re using Cloudflare for your DNS, make sure to toggle OFF the proxy switch. You may need to wait a while for the DNS settings to propagate. Make sure that the A record matches the hostname you configured on your web server and that the IP address of the web server is associated with your domain name. Log into your DNS control panel and create a new A record: In order to connect to the server using your hostname you need to update your domain name’s DNS settings. To set the hostname, issue the following commands (altered for your chosen domain name): echo "" > /etc/hostname The hostname should be unique but doesn’t require any relationship to the sites that will be hosted, for example, some people opt to name their servers after astronomical objects.Ĭorrectly setting the hostname and FQDN will make connecting to your server much easier in the future as you won’t have to remember the IP address each time. Now that you’re logged into the server, let’s set the hostname and fully qualified domain name (FQDN). If you are on Windows, you can install SSH software called Putty. If you’re on macOS or Linux, you should be able to do all this through your default terminal application. To check for new updates run: sudo apt update The list of available updates is more than a week old. System information as of Tue Aug 30 18:48: You’ll be asked to enter the password you chose at the previous step. We’ll start by logging into the server via SSH. First Loginīefore we can install the web server software (e.g., PHP, MySQL, etc) required for a WordPress installation, we first need to configure a few things on the server. For now though, creating a secure root user password is the quickest way to get access to your server, to start installing things. Later on, we’ll be disabling the root user and password-based authentication as well as setting up SSH key authentication, which is more secure. DigitalOcean lists a few password requirements you should follow to ensure you create a secure password. DigitalOcean’s built-in monitoring tools will come in very handy once you are hosting a WordPress site.įinally, we recommend selecting the Password option under the “Authentication” section, so that you can log in to your server as the root user. I would also recommend that you enable the ‘Monitoring’ option. ![]() You should select a region that is closest to the majority of your base audience so that the requests to your new droplet will be faster for your audience. However, when creating your new DigitalOcean Droplet you should choose Ubuntu 22.04 LTS as your Linux distribution: In this tutorial I’m not going to go into detail on the initial VPS creation process, as DigitalOcean has their own doc. Creating a New DigitalOcean Droplet for Your Web Server ![]() We highly recommend using Cloudflare’s DNS service for this purpose. If you don’t already have a domain name, you will need to purchase one from a domain name registrar, and have the ability to update your domain’s DNS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |