Server Setup
Step 1: Connect to your EC2 instance
Use SSH to connect to your server instance.
Step 2: Verify your current directory
Confirm that you are in the correct directory (ideally
/home/ubuntu
or your project directory) and then run the following command.
pwd
Note
If the output differs, change your directory to
/home/ubuntu.
Step 3: Choose your network
Decide whether to install on mainnet or testnet, based on your requirements.
Mainnet
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/PayRam/payram-scripts/refs/heads/main/setup_payram.sh)"
Testnet
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/PayRam/payram-scripts/refs/heads/main/setup_payram.sh)" bash --testnet
After you run the command, the script installs all dependencies for the PayRam setup on your instance.

When the installation is complete, you are prompted to set up the database. Choose one of the two available options.

Note Option 1 is recommended for production environments.
If you select,
After you configure the database, set up SSL.

If you select,
After you select an SSL option, the Hot Wallet Encryption Setup screen appears. Press Enter to generate the AES-256 encryption key for your hot wallet.

The script displays all the configurations you selected. Review the settings carefully to ensure they are correct before proceeding.

If the configuration is correct, press Enter. The script sets up the PayRam server on your instance using your selected settings.
After the installation completes, a confirmation message appears in the terminal.

When the confirmation message appears, the PayRam setup is complete and running.
Go to the Onboarding configuration page for the next steps.
Last updated