Month: November 2024

SSH key loading error

User echo "$SSH_PRIVATE_KEY" | tr -d 'r' | ssh-add – Assistant The error you're seeing, `Error loading key "(stdin)": error in libcrypto`, typically occurs when the SSH private key has an incorrect format or is not being passed correctly. Here's a step-by-step process to troubleshoot and fix the issue: ### 1. **Check the Format of […]

SSH Key Error Fix

User image: node:21 pipelines: default: – step: name: Deploy Code to EC2 caches: – node script: – apt-get update && apt-get install -y openssh-client – eval $(ssh-agent -s) # Start the SSH agent – echo "$SSH_PRIVATE_KEY" | base64 –decode > ~/.ssh/id_rsa # Decode and store the SSH private key – chmod 600 ~/.ssh/id_rsa # Set […]

WP login form shortcode

User WP LOGIN form short cide Assistant To display the WordPress login form on any page using a shortcode, you can use the built-in `[wp_login_form]` shortcode. This shortcode outputs the default WordPress login form. Here’s how you can use it: 1. **Simple Usage**: Add the following shortcode where you want to display the login form: […]

Bitbucket Pipeline EC2 Deploy

User bitbukcket pipeline only to upload push to aws ec2 instance not for run anything Assistant If you want to set up a Bitbucket pipeline that only uploads (pushes) code to an AWS EC2 instance, without running any other tasks, you can follow these steps: 1. **Create an EC2 Key Pair**: Make sure you have […]

Security Group Port Changes

User after add port in securiy group is restart required Assistant No, a restart of the EC2 instance is **not required** after adding a new port to the security group. ### Explanation: When you modify the security group (e.g., adding a new port rule), the changes take effect immediately. AWS security groups are stateful, meaning […]

Laravel Vue Breeze EC2

User configure laravel vue breeze on aws ec2 ubuntu instance Assistant To configure Laravel with Vue.js and Breeze on an AWS EC2 Ubuntu instance, follow these steps: ### Prerequisites: 1. **AWS EC2 instance** running Ubuntu. 2. **Node.js** and **npm** installed on your EC2 instance. 3. **PHP**, **Composer**, and **Laravel** installed. 4. **MySQL** (or another database) […]

AWS EC2 Vite Config

User why aws ec2 ubuntu apache shows http://localhost:5173 for laravel vue js breeze when ruh yarn run dev on aws ssh Assistant If your Laravel Vue.js Breeze application on an AWS EC2 instance is showing `http://localhost:5173` after running `yarn run dev`, it means that the Vite development server is being bound to the default `localhost` […]

Table styling adjustments

User add some margin between rows and border light grey Assistant To add margin between rows and make the border light grey in your HTML table, you can modify the table's CSS. Here's the updated code with the necessary changes: <table style="width:70%; border-collapse: separate; border-spacing: 0 10px; border: 1px solid lightgrey;"> <tr> <th><?php echo __('Are […]

Save ACF Field Custom Form

User we have acf field – state_licensed in group key – group_6736ee16d650a we want to save it from custom form wordpress Assistant To save an ACF (Advanced Custom Fields) field called `state_licensed` from a custom form in WordPress, you can use the `update_field()` function provided by ACF. This function allows you to save ACF fields […]

View User Entry Page

User class Pending_User_Approval_List extends WP_List_Table { // Constructor public function __construct() { parent::__construct( [ 'singular' => 'user', // Singular name of the item 'plural' => 'users', // Plural name of the item 'ajax' => false, // Whether this table supports ajax ] ); } // Define the columns for the table public function get_columns() { […]