Aapanel (Nginx)
Follow the instruction video below to install the Script on your own aaPanel. If you have any problems, please open the ticker to ask detail here
Table of Contents
Domain API settings
Step 1: Create Api domain and connect them to your Server IP Address
Ex: api.yourdomain.com
Please set up SSL for Api domain
Step 2: API Domain Configure
Please insert code below into your API Domain
location / {
proxy_pass http://localhost:8000; #whatever port your app runs on
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
website -> api.yourdomain.com -> config
Step 3: Install Waziper on API domain (server.zip file)
1. Creat a new Directory in Root:
Create New Folder Name: wa_server inside“Root dir > root >“
2. Uploading SERVER.ZIP file to API Domain:
Please Upload the file to the right directory exactly

3. Decompress SERVER.ZIP FILE:
Please Upload the file to the right directory exactly
4. Config Database to API Domain
Follow guides below to config DATABASE to API Domain:*Note: This is API Domain (edit “config.js” file)

Input database information on your wordpress into file config.js

Install UBUNTU Server
Step 4: Install LIBRARY on UBUNTU Server
Please run PuTTY to Install Libraries.
Run this command:
sudo apt-get install libnss3-dev libatk-bridge2.0-dev libcups2-dev libxkbcommon-dev libgtk-3-dev
Step 5: Install NODEJS and PM2 on UBUNTU Server
Run these commands :
1. curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
2. sudo apt install nodejs
3. sudo npm i pm2 -g
Step 6: Install GOOGLE CHROME
1. Download Google Chrome:
Run these commands:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
2. Install Google Chrome:
Run these commands:
sudo apt install ./google-chrome-stable_current_amd64.deb
Step 7: Open PORT 8000
Please open port 8000 according to instructions

Step 8: Install Cron
Please create Cron according to the instructions
Cron: Once/minute:
sh -c 'cd /root/wa_server && node app'
/root/wa_server: is the path to the server.zip installation directory
Step 9: Restart Nginx Service and PHP (Ubuntu Server)
Follow the instruction below to restart your Nginx Service:
App Store / Nginx x.xx.x / Setting
Follow the instruction below to restart your PHP:
App Store / PHP- X.X / Setting


Step 10: Check the working status of the api domain
Please check the link
https://api.yourdomain.com/get_qrcode

Notice you have successfully installed Api domain
{“status”:”error”,”message”:”Authentication failed”}