Posts

How To Reset Root Password On CentOS 7

Image
  1 – In the Boot Grub Menu Select Option to Edit 2 – Go to the line of Linux 16 and change ro with “rw init=/sysroot/bin/sh” 3 – Now press “Control+x” to start on single-user mode 4 – Now access the system with this command chroot /sysroot 5 – Reset the password passwd root 6 – Exit Chroot exit 7 – Reboot your system reboot That’s it. Enjoy.

Steps_to_Install_Magento_2.4.4_on_Ubuntu_20.04

Image
  Steps to Install Magento 2.4.4 on Ubuntu 20.04 Prerequisites Ubuntu 20.04 Root SSH access. Or regular user with sudo privileges 1. Log in via SSH and update the system Log in to Ubuntu 20.04 VPS with SSH as a root user. You can also login as a regular user with sudo privileges. ssh master @IP_Address -p Port_number Add your server’s actual IP address and SSH port number. It should be in place of IP_address and Port_number. Check if you have the proper Ubuntu version installed on your server. Use the following command - $ lsb_release -a The output should look like this - No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04 .3 LTS Release: 20.04 Codename: focal Ensure that the installed packages are updated to the latest version. Run the following command - $ sudo apt update && sudo apt upgrade 2. Install PHP Magento 2.4.4 is fully compatible with PHP 8.1. Run the following command to install the latest stable version of PHP 8.1...

Source

  MobaXterm

SVN Incremental Backup

SVN_VAR=/opt/svnbackup_files DATETIME=`date +%Y%m%d` #for rep in ${SVN_REPPATH}/*;  #1 for word in $(cat /root/backup_repo.txt); #2 do   TSTAMP=`date +%s` #  CURR_REV=`${SVN_BINPATH}/svnlook youngest ${rep}` #1    CURR_REV=`${SVN_BINPATH}/svnlook youngest $SVN_REPPATH/${word}` #2 #  REP_BASE=`basename $rep` #1   REP_BASE=`basename $word` #2   if [ -e ${SVN_VAR}/status/dates/${REP_BASE}.dt ] ; then     REP_LAST_BK_TSTAMP=`cat ${SVN_VAR}/status/dates/${REP_BASE}.dt`     REP_LAST_BK_REV=`cat ${SVN_VAR}/status/revisions/${REP_BASE}.rev`   else     REP_LAST_BK_TSTAMP=0     REP_LAST_BK_REV=0   fi   if [ ${CURR_REV} -gt ${REP_LAST_BK_REV} ] ; then     echo "**********************************************************" #   echo "`date --rfc-2822`  - Incremental back up ${rep} : "  #1     echo "`date --rfc-2822`  - Incremental back up ${word} : " #2   ...

cPanel/WHM configuration Backup

 cPanel/WHM Backup Step 1. Check for available/Installed Modules   # /usr/local/cpanel/bin/cpconftool --list-modules cpanel::easy::apache cpanel::smtp::exim cpanel::system::autossloptions cpanel::system::backups cpanel::system::greylist cpanel::system::hulk cpanel::system::modsecurity cpanel::system::mysql cpanel::system::whmconf cpanel::ui::themes Step 2. export all configuration by cpconftool utility, and paste all module showed in Step 1. #/usr/local/cpanel/bin/cpconftool --backup --modules=cpanel::easy::apache,cpanel::smtp::exim,cpanel::system::autossloptions,cpanel::system::backups,cpanel::system::greylist,cpanel::system::hulk,cpanel::system::modsecurity,cpanel::system::mysql,cpanel::system::whmconf,cpanel::ui::themes Step 3 : you will get tar.gz file exported in /home folder.

MySQL_Installation_Steps_Configuration

# sudo apt install mysql-server # sudo mysql_secure_installation enter mysql root 'password' reset root password in mysql # sudo mysql -u root  ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY  'password'; FLUSH PRIVILEGES;

PHP_Installation_Steps

Perform following steps for install php version. sudo apt -y install software-properties-common sudo add-apt-repository ppa:ondrej/php apt-get update For php 8.0 apt install -y php8.0 php8.0-common php8.0-soap php8.0-gd php8.0-xml php8.0-intl php8.0-mysql php8.0-zip php8.0-curl php8.0-fpm php8.0-bcmath php8.0-mbstring libapache2-mod-php8.0 php8.0-cgi For php 7.4 apt install -y php7.4 php7.4-common php7.4-soap php7.4-gd php7.4-xml php7.4-intl php7.4-mysql php7.4-zip php7.4-curl php7.4-fpm php7.4-bcmath php7.4-mbstring libapache2-mod-php7.4 php7.4-cgi For php 7.3 apt install -y php7.3 php7.3-common php7.3-soap php7.3-gd php7.3-xml php7.3-intl php7.3-mysql php7.3-zip php7.3-curl php7.3-fpm php7.3-bcmath php7.3-mbstring libapache2-mod-php7.3 php7.3-cgi a2enmod php7.4 a2dismod php old one a2enconf php7.4-fpm -------------------------------- Virtual Host configuration  <VirtualHost *:80>     ServerAdmin admin@example.com     ServerName example.com     ...