To host the WhatsApp server, you'll need to run it on your own server, allowing scalability as your user base grows. This guide assumes you have SSH access to your server.
Use these pre-built binaries to run the server. They're user-friendly and don't require complex configurations. They're compatible with the following operating systems:
Linux (amd64 & arm64)
Windows (amd64)
Mac (Apple Silicon)
pcode: Your valid Zender purchase code. Obtain it from your CodeCanyon profile. (required)
key: The secret key for peer verification of WA server and Zender. It should match the one in the WA server settings. (required)
host: IP of your server. If omitted, the binary automatically detects it. (optional, default is wildcard 0.0.0.0)
port: Port for the WhatsApp server. (optional, default is 8899)
ngroktoken: Your ngrok authtoken. (required if using ngrokserver)
ngrokserver: URL of your Zender site(s), separated by commas. (required if using ngroktoken)
proxy-host: Proxy server hostname/IP (required for proxy)
proxy-port: Proxy server port (required for proxy)
proxy-protocol: Proxy protocol: socks, socks5, http, https (optional, default is socks)
proxy-username: Proxy authentication username (optional)
proxy-password: Proxy authentication password (optional)
debug: Enable debug mode. Accepts true or false value. (optional, default is false)
autoread: Disable auto read of conversations. Accepts true or false value. (optional, default is true)
This is the basic command to run the WhatsApp server:
./titansys-whatsapp-linux --pcode="purchase_code" --key="secret_key"On some servers, there are instances where it automatically kills terminal apps such as these binaries. For that, you can follow this guide to keep the binary running even if the server reboots.
Linux
Crontab (Please run crontab -e to verify that your server has crontab)
Run the following command to create a script:
sudo nano /usr/local/bin/unliwaGo back to the WhatsApp server setup guide and generate your background script in step 5, after that, copy it and paste to unliwa script.
Press ctrl + o to save the script then ctrl + x to exit.
Run the following command to make it executable:
sudo chmod +x /usr/local/bin/unliwaOpen the crontab by running the following command:
crontab -eIf it ask to select editor, please select nano which is the easiest editor.
At the bottom, add the following crontab rules:
@reboot /usr/local/bin/unliwa >/dev/null 2>&1
* * * * * /usr/local/bin/unliwa >/dev/null 2>&1Press ctrl + o to save the script then ctrl + x to exit.
Reboot your server and wait. All done.