Wazone Install (2 subdomains)

REQUIREMENTS:
– any shared hosting with cPanel and Node.js v14.x (tested to be problematic with other versions)
– PHP8.1

INSTALL NOTE:
https://mydomain.com” and “https://api.mydomain.com” are just for illustration purpose.
if https://mydomain.com is not available, you can use sub-domain for admin panel.
Example: https://app.mydomain.com

INSTALLATION ADMIN PANEL:
1. Upload wazone_admin_panel_1.0.x.zip to https://mydomain.com, then extract.
2. Open browser to https://mydomain.com
3. Please follow steps on the installer page.

Don’t forget to change NODEJS url to https://api.mydomain.com
Optional. Fill if you want the reset password feature to work.
You can login with
Login: admin
Pass: password

INSTALLATION NODE JS APP:
Node.js installation in cPanel (Sorry for Dedicated/VPS users…, please follow Wazone Panel and Node.js server Install (VPS + CloudPanel) – VisiMisi)
1. Upload wazone_node_server_0.9.x.zip to https://api.mydomain.com, then extract.
2. Copy “.env.node.server” from https://mydomain.com to https://api.mydomain.com rename to “.env”
If you cannot find “.env.node.server”, just use the admin panel “.env” file (same thing)
But, if you doing update, just copy .env from admin panel to node server subdomain folder

There are 2 possibilities for your NodeJS application root folder. Either this or like picture below.
If your subdomain like this, use “api.mydomain.com”
If your subdomain inside public_html, please use “public_html/api” for NodeJS application root
cPanel -> Software -> Setup Node.js App -> Click on Create Application
Recommend Node v14.x from many reports.
Application root -> fill “Application root” from the picture from above. The rest, follow the example.
Click “Create” button. If you think you nodejs app having problem in the future, you can click STOP -> START APP.
DO NOT! DO NOT! DO NOT! “Run NPM Install”.
open browser to “https://api.mydomain.com/info” and see if nodejs is working

ADD CRON JOB:
Open Wazone admin panel -> click “Rest Api” menu.
NO ACTIVATION = NO SENDING MESSAGE
Before you ask about why my message not sending, please go to “Rest Api” page

Rest Api page -> go all the way down
Copy the “Cron Job” command
cPanel -> Cron Jobs
Once per minute
Paste the command below
Click “Add New Crob Job” button

CONGRATULATION:
Not too bad,right? Easy peasy…

Powered by BetterDocs