Unable to access Plesk: /usr/local/psa/admin/logs/panel.log cannot be opened with mode “a” Cause Wrong ownerships for the /var/log/plesk/ directory or /var/log/plesk/panel.log file. Resolution Log into the the server via SSH. Execute the commands below one by one to set proper ownerships for /var/log/plesk/ directory: # chmod 0750/var/log/plesk/ # chown psaadm:root /var/log/plesk/ Run the following commands to set correct ownerships for the /var/log/plesk/panel.log file: # chmod 0640 /var/log/plesk/panel.log # chown… Continue reading Plesk Panel Permissions Unable to access Plesk: /usr/local/psa/admin/logs/panel.log cannot be opened with mode “a”
Tag: plesk
Encryption of the Data in Node JS for the Bank integration
Here is the encryption doing for the request body from the node js application const express = require(‘express’); const router = express.Router(); const axios = require(‘axios’).default; const mycrypto = require(“../../../javascript/crypto”); const fs = require(‘fs’); const path = require(‘path’); const aesjs = require(“aes-js”); const { RSA, Crypt } = require(‘hybrid-crypto-js’); const rsa = new RSA(); const… Continue reading Encryption of the Data in Node JS for the Bank integration
Hybrid decryption using node js
Here is an example of the decryption function which can be used for the decryption of the encrypted data const encryptedKey1 = fs.readFileSync( path.resolve(__dirname, “../../../../keys/encryptkey.txt”), “utf8”); const EN_PATH = path.resolve(__dirname, “../../../../keys/encrypt.txt”); const EN_KEY = fs.readFileSync(EN_PATH, “utf8”); var key = await mycrypto.decryptViaPrivateKey(encryptedKey1, GTEN_PRIKEY_PATH, PASS); const aescbc = new aesjs.ModeOfOperation.cbc(aesjs.utils.utf8.toBytes(key), “”); let _decryptedText = aescbc.decrypt(Buffer.from(EN_KEY, “base64”)); _decryptedText… Continue reading Hybrid decryption using node js
Install plesk C Panel on local server
To access a local server on your Windows system using SSH (Secure Shell) with the provided credentials,you can use Windows Subsystem for Linux (WSL) Enable WSL: Open PowerShell as Administrator. Run the command: wsl –install. Follow the prompts to install and set up WSL. Open WSL Terminal: Type wsl in the Start menu or Run… Continue reading Install plesk C Panel on local server
Plesk with GCP server
Plesk is the leading WebOps platform to build, secure, and run websites and applications.A control panel with an intuitive interface for everyone, ready-to-code environment and powerful extensions. And a complete set of security tools and features to protect your websites, networks, servers and OS’s Go to Google-cloud-platform dashboard >Marketplace and search for Plesk Click on… Continue reading Plesk with GCP server
Setup wordpress through plesk CPanel in server
Log in to the Plesk admin page and select Applications on the left-hand menu Click Install for WordPress on the Applications page. It will take a few moments for the WordPress application to download and install. After the process completes, you will be able to view and manage your WordPress installation. To manage the WordPress installation, go to Applications > Manage My Applications and click… Continue reading Setup wordpress through plesk CPanel in server