The installation of AlterCPA Pro is fully automatic. You prepare a server and a domain and run one command on the server, and the installer does everything else by itself.
Preparing to deploy
- Server on clean Debian 13 (x86-64) without a control panel, with its own IPv4 address, at least 2 vCPU, 4 GB of RAM and a 40 GB SSD. Ports 22, 80 and 443 must be open. Shared hosting will not work.
- Domain for the control panel and internal services. A second-level domain is best: the www and r subdomains will be needed.
- License of AlterCPA Pro, paid and active. When purchasing it, specify the server IP address and the domain: the license is bound to them. If the IP address or the domain needs to change, click “Change address” on the license page.
- SSH client: PuTTY for Windows, the built-in Terminal for macOS.
Setting up the domain
Point the domain to the server. In the DNS zone of the domain (the zone records, not the list of DNS servers) add three records. Replace 12.34.56.78 with the IP address of your server. The record @ is the domain itself, www is its alias, and r is the address of the site storage.
@ A 12.34.56.78 www CNAME @ r CNAME @
If your registrar does not support CNAME records, add the same A records with the server address for www and r. There is no need to wait for the records to start working: the certificates will be issued by themselves once the domain points to the server.
Installation
- Connect to the server over SSH as root. If the provider does not let you log in as root, run this command after logging in:
sudo -i
- In your account, open the “Licenses” section and then your license. Copy the command from the “Installation instructions for the server” block. If the license was bought for a subdomain, read the “Installing on a subdomain” section below first. The command looks like this:
wget https://cpa.st/lic/q1w2e3r4t5y6u7i8o9p0/pro.sh && bash pro.sh
- Paste the command into the SSH window and press Enter. The installer asks no questions. Keep the terminal open until it has finished.
- Wait a few minutes. At the end the installer prints the line “Setup completed successfully!” and the address of the panel, and the e-mail “Completed installation of AlterCPA on your domain” with the access data of the server arrives at your account’s address. If the output above contains the line “Note: reboot the server once the installation has finished”, reboot the server with the reboot command after the installation.
- If the installation was interrupted or stopped with an error, remove the cause and run the same command again. The installation continues where it stopped. If wget answers “404 Not Found”, check that the license is paid and active and that the command is copied completely.
Initial system setup
Open your main network domain in a browser. You will be prompted to create a main administrator. Enter a valid e-mail address and a strong password: the administrator has full access to any operations with the system.
Then go to the “Control — Settings” section. In the “Appearance” section, select a color scheme for the control panel. After that, make small changes to the sections “Basic”, “Financial”, “Databases” and possibly “Datasets”.
Section “Basic”
- Specify the name of your network, contact E-mail and time zone.
- Check the box “Disable registration for new users” until you have set up the offers. For a private network you can leave it on.
- By default the system sends e-mails by itself, from the server. If you want to send them through your own SMTP server, in the “E-mail processing” block check “Use SMTP-server to send emails” and enter its details. If not, change nothing.
Section “Financial”
- Select the main internal currency of the system, in which commissions will be calculated and payouts made.
- After choosing a currency, click the “Update” button in the list of currencies.
Section “Databases”
- Select the MaxMind GeoLite English geobase as the best one.
- Enable additional databases depending on your region of operation, if necessary.
Section “Datasets”
In this section, you may be interested in the items “Offer categories” and “Withdraw methods”.
Installing on a subdomain
If the license was bought for a subdomain, for example my.domain.com, the site storage is at r.my.domain.com by default. To put it beside the panel, at r.domain.com, add the --sites option with the name you want to the end of the install command. Your account shows the command without it.
wget https://cpa.st/lic/q1w2e3r4t5y6u7i8o9p0/pro.sh && bash pro.sh --sites=r.domain.com
The www subdomain is not needed in this case, so two records in the DNS zone of domain.com are enough:
my A 12.34.56.78 r A 12.34.56.78
The name after --sites must be a full domain name and must differ from the license domain. Choose it before the first run: on an installed server the storage name cannot be changed any more.
Further steps
- Read the “Working with platform” section of this manual.
- No, we are serious: read the “Working with platform” section of this manual, you really need it in your work.
- The system updates itself: every hour the server checks for new versions of the platform and installs them.
- If you want to add optional services to the system, for example a front server, see the other guides of the “System deployment” section. It’s strongly recommended to use front server with your setup. Please follow this manual.