Wazone Install (2 subdomains)

REQUIREMENTS:
– any shared hosting with cPanel and Node.js installed by the hosting provider
– PHP8.0 and UP (Recommended PHP8.1)

INSTALL NOTE:
Install admin panel & Nodejs server separately will give you the possibility to put admin panel on one server and Nodejs server on a different server.
If you don’t need this feature, please go here wazone-install-1-subdomain to install admin panel & Nodejs server in 1 subdomain.

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

It is still possible to have both (server & panel) in 1 subdomain. Just extract both zip in https://api.mydomain.com
Some servers will have problem when calling https://api.mydomain.com from browser because it will call the nodejs.
So, need to go directly like this https://api.mydomain.com/public/login
To install use this https://api.mydomain.com/public/update

If you faced any issue/problem, please read error message! Then google the error message.
You probably will get solution in 5 minutes, instead of waiting for me for 2 hours to answer you.
“Composer require PHP >=8.0.2” error message, but you already set PHP to PHP8.0/PHP8.1. Why?
Google “change php version in htaccess” for solution.
If it does not work, please ask your hosting provider to set this for you.
For any other issue/problem, please take a deep breath and start typing keywords in to google.

INSTALLATION ADMIN PANEL:
1. Upload wazone_admin_panel_0.8.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…, try to find help on google, because I don’t know how to set it up on dedicated/VPS servers)
1. Upload wazone_node_server_0.8.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”
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
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/test” 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