Plesk Panel Permissions Unable to access Plesk: /usr/local/psa/admin/logs/panel.log cannot be opened with mode “a”

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”

Email Template in Magetno for the order id and Item Grid Structure

Here is the Email template for the Order email with the order Id and the orders item grids {{template config_path=”design/email/header_template”}} <table>   <tr class=”email-intro”>     <td>       <p class=”greeting”>{{trans “%customer_name,” customer_name=$order_data.customer_name}}</p>       <p>      {{trans “Thank you for your web order from the SZCO website.Your web order ID is “}}{{var order.increment_id}}.         {{trans “Once your package ships we will send you… Continue reading Email Template in Magetno for the order id and Item Grid Structure

Encryption and Decryption Logic for ICICI bank Apis

PFB & PFA Kindly start the live testing and let us know incase of any support is required from bank end   Headers :-   accept: */*,  content-length: 684, content-type: text/plain   APIKEY: ADGpGADpJjzvsBDrKT07beqVo6IIsOuK “AGGRID”:”OTOE0832″ “AGGRNAME”:”G10XTECH” “URN”:”SR256689761 APIs:- https://apibankingone.icicibank.com/api/Corporate/CIB/v1/AccountStatement https://apibankingone.icicibank.com/api/Corporate/CIB/v1/BalanceInquiry   Encryption & Decryption:- AES-128-CBC Algorithm Name: RSA Mode: ECB Padding: PKCS1Padding RSA/ECB/PKCS1Padding Encryption Logic:-… Continue reading Encryption and Decryption Logic for ICICI bank Apis

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

Usage of Link Component in Next Js

<Link> is a React component that extends the HTML <a> element to provide prefetching and client-side navigation between routes. It is the primary way to navigate between routes in Next.js. import Link from ‘next/link’ function Home() { return ( <ul> <li> <Link href=”/”>Home</Link> </li> <li> <Link href=”/about”>About Us</Link> </li> <li> <Link href=”/blog/hello-world”>Blog Post</Link> </li> </ul> )} export default Home

How to Create a Step Progress Bar With Tailwind

The very first thing we need is the HTML structure. index.html <div class=”stepper-wrapper”> <div class=”stepper-item completed”> <div class=”step-counter”>1</div> <div class=”step-name”>First</div> </div> <div class=”stepper-item completed”> <div class=”step-counter”>2</div> <div class=”step-name”>Second</div> </div> <div class=”stepper-item active”> <div class=”step-counter”>3</div> <div class=”step-name”>Third</div> </div> <div class=”stepper-item”> <div class=”step-counter”>4</div> <div class=”step-name”>Forth</div> </div> </div> We have a wrapper that contains all of the steps.… Continue reading How to Create a Step Progress Bar With Tailwind

How to integrate Buttons and RSVP Forms with Next.js

Since Nextjs does not play that nicely with web components, we strongly recommend to use our official React Wrapper package instead of the default one. It already mitigates all the potential problems and issues. npm install add-to-calendar-button-react Step 2: Import it ​Import the module into the component, where you want to use the button. import { AddToCalendarButton… Continue reading How to integrate Buttons and RSVP Forms with Next.js

Node Js App to call back an API

Here is an example of an API to send back an API response when something is posted into and API and called it to an another API. Folder Structure is Like // src/routes/index.js const express = require(‘express’); const router = express.Router(); const axios = require(‘axios’); router.post(‘/fetchStatement’, async (req, res, next) => { try { const… Continue reading Node Js App to call back an API