Cpanel
Follow the instruction video below to install the Script on your own Cpanel. If you have any problems, please open the ticker to ask detail here
Table of Contents
SETUP NODEJS FOR CPANEL
With Cpanel you can use following ways to run nodejs
OPT 1: UPGRADE NODEJS TO VERSION 16

OPT 2: INSTALL NODEJS APP VERSION 16.X.X


OPT 3: YOU CAN ALSO INSTALL CPANEL VIA IP: HERE
ERROR: SERVICE UNAVAILABLE

Create a .htaccess file in the domain directory for the server api
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{SERVER_PORT} !^8000$
RewriteRule ^ http://%{HTTP_HOST}:8000%{REQUEST_URI} [P,QSA,L]
</IfModule>
Dowwnload .htaccess file here >>>
CHECK THE SERVER INSTALLED SUCCESSFULLY
Check the server
https://api.yourdomain.com/get_qrcode
SUCCESSFUL INSTALLATION MESSAGE
{“status”:”error”,”message”:”Authentication failed”} |
QR CODE ERROR
Check the server
https://api.yourdomain.com/get_qrcode
ERROR: CANNOT CONNECT TO DATABASE
“status”:”error”,”message”:”Cannot connect to database. Please try again”} |
PLEASE CHECK THE CONNECTION TO THE DATABASE