Installing and Configuring Electrum (2 Wallets)
Installing Required Modules on the Server via ISP Manager 6 Lite
Log in to the ISP Manager control panel using the root user credentials.
Navigate to the "Administration -> Shell Client" section.

Right-click on the blank screen and select "Paste from browser" from the context menu.

Enter the command below in the opened window, click "OK," and then press Enter to execute the command:
sudo apt-get install libsecp256k1-0 python3-cryptography -y
Wait for the command to complete.

Verifying Shell Client Access for the Website User
Go to the "Users" section.

Click on the username under which the website operates.

In the "Access" block, check if the "Shell Access" checkbox is selected. If not, select it and save the user settings.

Installing Electrum on Your Computer and Creating Wallets
Download and install Electrum on your computer:
electrum-4.4.6-setup.exe — Installer for Windows
electrum-4.4.6-portable.exe — Portable version for Windows
electrum-4.4.6.dmg — Installer for macOS
electrum-4.4.6.tar.gz — Installer for Linux
Create 2 wallets (or duplicate an existing wallet by copying its file) following the app instructions.
Warning! Do not use the $ symbol in the wallet password, as it may cause script errors.
Create a second wallet in the same way (or use a duplicate).
Open the installed Electrum app on your computer and go to the "File" -> "Open" menu.

In the folder that opens, locate the wallets you created. Name the wallet for receiving funds default_wallet_in and the wallet for sending funds default_wallet_out. (If you don’t plan to use auto-payouts, you don’t need to create a new module copy in the admin panel. The wallet is only required for proper module installation.)

Uploading Files to the Server
Go to the "Sites" section in ISP Manager.

Select your site and click the "Login as Owner" button. You will be logged in as the user created for the site.

Open the "File Manager" section in the sidebar.

Upload the files from the
electrum_installer.zip
archive (provided after module payment) and the two Electrum wallet files from the "electrum_data" folder on your computer.
Files to upload:
start_or_restart_electrum_daemon2.sh
install_electrum2.sh
default_wallet_in
default_wallet_out
If the uploaded wallet files have names other than default_wallet_in and default_wallet_out, rename them accordingly on both the server and your computer. This is necessary for the automatic transfer of wallet files to the Electrum folder on the server.
Installing Electrum on the Server
Go to the "Shell Client" section, logged in as the user created for the site.

Right-click on the blank screen, select "Paste from browser", enter the command
bash install_electrum2.sh
, and click OK. Then press Enter to run the command.

After the script finishes, save the data highlighted in red in the screenshot below for further module configuration in the admin panel.

If you are installing Electrum on a server different from the one hosting the Premium Exchanger script, you will need to specify the "API Server" field in the merchant/auto-payout module settings in the admin panel. Enter the IP address of the server where Electrum is installed.
Adding Cron Jobs
Copy the first command to configure the Cron task scheduler on the server. Highlight the corresponding line with the left mouse button, right-click, and select "Copy."

Go to the "Cron Scheduler" section.
Cron jobs must be added under the user created for the site, not under the root user!

Click the "Create Task" button, paste the command copied in step 22 into the "Command" field, and configure the form as shown in the screenshot below.

Click "Create."
Create a task for the second command.

Deleting Files on the Server
In the "File Manager" section, delete 3 of the 4 previously uploaded files from the server:
install_electrum2.sh
default_wallet_in
default_wallet_out
Do not delete the file start_or_restart_electrum_daemon2.sh
.

Restarting the Server
Make sure to restart the server after installation.
After installing Electrum or changing the wallet/password, you must restart the server.
Continuing Configuration
After installing Electrum on the server, configure the connection to the Electrum wallets in the admin panel:
Last updated