How to make File Undeletable even by root user in Linux Date: 30-01-2021 You can set attribute of a file by using below command.# chattr +i directory/fileUse the below command to view attributes of a file.# lsattr directory/file You can remove the attribute of a file.# chattr -i directory/file

Please follow the below steps to setup backup of mysql database from server to Amazon s3. Login to AWS console, create IAM user, download the credentials and attach AmazonS3Full access policy to the IAM user. Install AWS CLI and configure by following the below commands. apt install awscli -y aws… Continue Reading Automate MySQLdump Backup from server(backend) to Amazon S3

How to Increase RAM Size of the container in OpenVZ Date: 21-01-2021 Step 1: Check the list of all running containers by using the below command.#vzlist Step 2: You need stop VPS to which VPS server want to increase the RAM.#vzctl stop <CT_ID> Step 3: Increase the VPS RAM by… Continue Reading How to Increase RAM Size of the container in OpenVZ

How to solve “404 Not Found” error while accessing subpages on website. Date: 17-01-2021 Step 1: You need to enable Apache2 rewrite module by using below command.# sudo a2enmod rewrite Step 2: Restart Apache2.# sudo systemctl restart apache2 Step 3: Add the below details in your website Apache (etc/apache2/sites-available) configuration… Continue Reading How to solve “404 Not Found” error while accessing subpages on website.

Please follow the below steps inorder to download files from S3 bucket 1) yum install s3cmd- Cent OS sudo apt-get install s3cmd – Ubuntu/Debian 2) s3cmd –configure It will ask for Access key & Secret key. Give them and proceed further 3) List all S3 bucket s3cmd ls 4) Download… Continue Reading How to download files from S3 bucket to local machine or server

Login to AWS console and go to S3. Create a new S3 bucket or if you want to copy the objects to another existing bucket, you can use it. Install and configure the AWS Command Line Interface (AWS CLI) with the below steps.a) curl “https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip” -o “awscliv2.zip”b) unzip awscliv2.zipc) sudo… Continue Reading How to copy objects from one bucket to another bucket in the same region.

How to create Sending API for domain in Mailgun Date: 09-01-2021 Step 1: Login to the mailgun portal Step 2: Click on Domains under the Sending section on the left side. Select the domain in which you wish to create a sending key. Step 3: Click on Domain Settings and navigate to… Continue Reading How to create Sending API for domain in Mailgun

Install PHP 7.2-mcrypt Module on Ubuntu 18.04 Date: 01-01-2021 Introduction: The PHP mcrypt module has been deprecated in PHP 7.2 so it’s not available by default. PHP 7.2-mcrypt package is missing in Ubuntu server. You need to follow the below steps to install this module for PHP 7.2. Step 1:… Continue Reading Install PHP 7.2-mcrypt Module on Ubuntu 18.04