How to Install BTCPay Server on Ubuntu Server Latest
In this tutorial, we will guide you on how to install BTCPay Server on Ubuntu Server Latest easily and quickly.
Prerequisites
- Ubuntu Server Latest
- SSH access
- Root privileges
Step 1: Update the System
Firstly, update the Ubuntu System by running the following command in the terminal:
sudo apt update && sudo apt upgrade -y
Step 2: Install .NET SDK
BTCPay server is built with .NET Core, so we need to Install .NET SDK to run the BTCPay Server.
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y apt-transport-https && sudo apt-get update && sudo apt-get install -y dotnet-sdk-5.0
Step 3: Install BTCPay Server
Now, we can download and install BTCPay Server by cloning the official BTCPay Server git repository.
sudo apt install git -y
cd ~/
git clone https://github.com/btcpayserver/btcpayserver.git
This will clone the BTCPay Server Application in a new btcpayserver folder.
Step 4: Setup the Server
In this step, we will configure BTCPay Server by running the ./configure.sh script.
cd ~/btcpayserver
./configure.sh
The configuration process will take some time, This script will download and setup all the required dependencies.
Step 5: Start BTCPay Server
Once the setup is complete, start the BTCPay Server by running the following script:
cd ~/btcpayserver
./run.sh
This will start the BTCPay Server and should be accessible via your server's IP Address and port 23000.
For example http://yourhostname:23000.
Conclusion
Congratulations! You have successfully installed and configured BTCPay Server on Ubuntu Server. You are now ready to create your own payment gateway and start accepting cryptocurrency payments.