Are you starting a blog with minimal investment? Amazon Lightsail is an excellent server option, particularly for beginners. It offers a free one-month trial, allowing you to explore its features without any upfront costs. Once the trial period ends, you can choose a pricing plan that fits your needs.

If you aim to host a single blog, the WordPress instance can be installed with just one click, making it perfect for new bloggers. However, for users who want to host multiple domains or require root access, configuring Amazon Lightsail with ServerPilot offers a flexible and free solution.

Why Choose ServerPilot Over cPanel?

Unlike cPanel, which can overwhelm users with numerous features, ServerPilot offers a more straightforward and user-friendly interface. It grants access to critical options like database creation, domain management, and file uploads. You can use any FTP client to manage files, though FileZilla is highly recommended due to its free availability and ease of use. While the setup process for integrating Amazon Lightsail with ServerPilot may take some time, it’s not overly complex. Even if you’re new to servers, a video tutorial at the end of this article can guide you step by step.

How to Configure Amazon Lightsail With Serverpilot

Setting Up Amazon Lightsail for Serverpilot

To start, you need to have an active Amazon Lightsail account. If you’re new, sign up for the one-month free trial. If you already have an account, head over to your dashboard.

Creating a New Instance

  1. Click on “Create Instance.” On your dashboard, look for the “Create Instance” button and click on it.
  2. Select Base OS: On the next screen, you’ll be given two options: “App+OS” and “Base OS.” Choose “Base OS” since you’ll use an independent server with Serverpilot.
  3. Pick Ubuntu 16.04 LTS: You will now see two options: Amazon Linux and Ubuntu 16.04 LTS. Choose Ubuntu 16.04 LTS for compatibility with Serverpilot.
  4. Choose Your Plan: Scroll down to select the free plan for your first month. Alternatively, you can choose a higher plan if you require more resources.
  5. Name Your Instance: Choose a name for your instance. This could be your domain name or leave the auto-generated name. Once you’re ready, click on “Create.”
Amazon Lightsail Instance

Note: It may take a few minutes for the instance to be created. Please be patient until you receive a confirmation.

Configuring the Instance

  1. Download the Default Key: Click “Account” in the top corner once your instance is created. Download the default key and save it to your desktop for easy access. This will be a .pem file, which you’ll need to convert to .ppk.
  2. Convert the Key: Use Puttygen to convert the .pem file to a .ppk file. Open Puttygen, load the .pem file, and click “Save private key.”
  3. Manage Networking: Return to the Amazon Lightsail dashboard, find your newly created instance, and click on the three dots. Select “Manage” and then “Networking.” Scroll down to the firewall settings and add a new rule for HTTPS. Click “Save” when you’re done.
amazon lightsail free one month plan

Connecting Serverpilot to Amazon Lightsail

  1. Sign Up or Log In to Serverpilot: Go to Serverpilot’s website and either sign up for a new account or log in if you already have one. Once you’re in, click on “Connect Server.”
  2. Enter Server Details: Select the option that says, “I don’t have a root password or public IP address.” You’ll need to enter the IP address of the instance you created in Amazon Lightsail and the password that Amazon sent to your email.
  3. Open Putty for SSH Connection: Open Putty and enter the IP address of your instance in the “Host Name” field. On the left side, navigate to “SSH” > “Auth” and add the .ppk private key file that you converted earlier.
amazon ssh key download
serverpilot configuration

Finalizing the Serverpilot Installation

  1. Enter Username and Password: Once Putty opens the connection, you will be prompted for a username and password. The default username is “Ubuntu,” and the password you received from Amazon Lightsail.
  2. Run the Installation Commands: Copy and paste the following commands into Putty one by one: bash Copy codesudo apt-get update && sudo apt-get -y install wget ca-certificates && \ sudo wget -nv -O serverpilot-installer \ https://download.serverpilot.io/serverpilot-installer && \ sudo sh serverpilot-installer
  3. Complete Serverpilot Setup: After running the above commands, Serverpilot will automatically provide you with additional command lines, including server-id and server-apikey. Copy and paste these into Putty when prompted. Serverpilot will then begin the installation process.
serverpilot putty commands

Completion

Once everything is set up, your Serverpilot page will open automatically in your browser, confirming the installation is complete.

If you followed each step closely, your Amazon Lightsail instance should now be successfully configured with Serverpilot. If you encounter any issues, please ask questions in the comment section or watch the video tutorial.

FAQs

Q1: What is Amazon Lightsail?

Amazon Lightsail is a cloud platform that provides everything you need to deploy a website or application. It offers virtual servers, storage, databases, and networking, all for a low, predictable price.

Q2: What is Serverpilot?

Serverpilot is a platform that simplifies server management for PHP websites, especially WordPress. It helps automate tasks such as installing software, managing security updates, and optimizing performance.

Q3: Why do I need to convert the .pem file to .ppk?

The .pem file is the default key format provided by Amazon Lightsail for SSH access. Putty, a popular SSH client, does not support .pem files. Therefore, you need to convert it to .ppk using Puttygen for compatibility with Putty.

Q4: Can I use a different version of Ubuntu?

Yes, Serverpilot also supports newer versions of Ubuntu. However, the tutorial explicitly uses Ubuntu 16.04 LTS for compatibility. If you choose another version, make sure Serverpilot supports it.

Q5: How long does it take to set up Amazon Lightsail with Serverpilot?

The setup process typically takes 30 to 60 minutes, depending on your familiarity with the tools and internet connection speed.

Q6: What should I do if I encounter issues during installation?

If you encounter problems, check the logs on Putty for error messages. You can refer to Serverpilot’s support documentation or contact their customer support. Additionally, video tutorials are available to guide you through the process.

Q7: Is sharing my .ppk file or server details with others safe?

No, you should never share your .ppk file, IP address, or server credentials with anyone. This information is sensitive and could lead to security breaches if shared.

Q8: Can I host multiple websites on a single Lightsail instance using Serverpilot?

Yes, Serverpilot allows you to manage multiple websites on a single server. You can create various apps for domains or subdomains within the same instance.

Q9: Do I need to pay for Serverpilot?

Serverpilot is now paid only with better service and 24/7 support.

Q10: Can I upgrade my Lightsail plan later?

You can always scale your Amazon Lightsail instance to a higher plan as your website or application grows without losing data.

Categorized in:

Web Development,