Go back

Setup and installation of 'BTCPay Server: Bitcoin Payments Made Easy' on AWS

  1. On the EC2 Console page, instance is up and running. To connect to this instance through putty, copy the IPv4 Public IP Address. (refer Putty Guide available at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-linux-inst-from-windows.html for details on how to connect using putty/ssh).

  2. Open putty, paste the IP address and browse your private key you downloaded while deploying the VM, by going to SSH- >Auth->Credentials , click on Open.

  3. Login as ubuntu user.

  4. Update the password of ubuntu user using below command :

sudo passwd ubuntu
  1. Once ubuntu user password is set, access the GUI environment using RDP on Windows machine or Remmina on Linux machine. Copy paste the Public IP of the VM and paste it in the RDP. Login with ubuntu user and its password.

  2. To access the BTCPay Server Web Interface, you will need DNS name of the VM instance. To use the DNS name , you need to assign Elastic IP for you instance.For more details please visit https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/working-with-eips.html page. This will keep your DNS static and will not change after vm restart.

  3. Once you assign Elastic IP to you instance, go to your instance details page on AWS console and copy the DNS Name as shown below.

/img/aws/btcpay-server-with-bitcoin-fullnode/dns-name.png

  1. Now connect via terminal and switch to root user using-
sudo su -

/img/aws/btcpay-server-with-bitcoin-fullnode/switch-to-root-user.png

  1. Now run the script with below command and when prompted provide the DNS Name copied in step 7.
 ./btcpay-server-setup.sh

/img/aws/btcpay-server-with-bitcoin-fullnode/run-script.png

  1. The script will take some time and reboot the vm on completion. Wait for few minutes to start the VM and then access the BTCPay Server from the browser using the same DNS Name. Make sure to use DNS Name and not the public IP over HTTPS.

Note If the browser shows “500 Internal Server Error” then wait for few minutes and refresh it.

/img/aws/btcpay-server-with-bitcoin-fullnode/btcpay-registration-page.png

Go back