Plesk
Follow the instruction video below to install the Script on your own Plesk. If you have any problems, please open the ticker to ask detail here
Table of Contents
CHECK THE SERVER INSTALLED SUCCESSFULLY
Check link
https://serverdomain.com/get_qrcode
SUCCESSFUL INSTALLATION MESSAGE
{“status”:”error”,”message”:”Authentication failed”} |
QR CODE ERROR
Check link
https://serverdomain.com/get_qrcode
ERROR: CANNOT CONNECT TO DATABASE
“status”:”error”,”message”:”Cannot connect to database. Please try again”} |
PLEASE CHANGE NODE.JS VERSION AND TRY AGAIN
500 Internal Server Error

Cause
Incorrect rewrite rules in .htaccess
file causing constant redirecting.
Resolution
Log into Plesk;
Navigate to Domains > example.com > File Manager;
Rename the .htaccess
:

Create a .htaccess file with the content below
RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

Note: After the installation is complete, please restore the old .htaccess file
Replace 2 .htaccess files in the install and install/install directories as below


RewriteEngine on RewriteBase / RewriteCond $1 !^(index\.php|resources|robots\.txt|static) [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/?$1 [L,QSA]
Set memory_limit 512M or higher

Node.js extension – Plesk
Add Node.js applications to your websites with just a few clicks. Easily manage the application from Plesk
Access the link
https://www.plesk.com/extensions/node-js/

