How to Disable Network Manager on CentOS 7

1. To disable the Network Manager service, perform the following steps:

Disable Network Manager with the following commands:

CentOS 6, CloudLinux 6, Red Hat Enterprise Linux 6 (RHEL), or Amazon Linux:

service NetworkManager stop
chkconfig NetworkManager off

CentOS 7, CloudLinux 7, or RHEL 7:

systemctl stop NetworkManager
systemctl disable NetworkManager

2. Change to the /etc/sysconfig/network-scripts directory.

3. Open the ifcfg-eth0 and ifcfg-lo files with your preferred text editor and, if they exist, set the following keys’ Continue reading “How to Disable Network Manager on CentOS 7” »

Share

Reset Root Password on Ubuntu 20

Step 1: Reboot your Ubuntu 20.04 LTS Operating System and load the GRUB menu by holding the Shift Key on Keyboard

The first step is to start your computer machine and keep pressing the shift button on your keyboard until the GRUB menu appears, as shown in the picture below:

Step 2: Press ‘e’ to edit the commands

Now, select the boot Operating system, which is Ubuntu in our case, and press the ‘e’ key on your keyboard to edit some commands. By doing so, we can load the root shell Command prompt. Pressing the ‘e’ key on your keyboard allows you to have an edit screen, as shown in the picture below: Continue reading “Reset Root Password on Ubuntu 20” »

Share

Install and Setup ZFS on Debian 11

The full form of ZFS is Zettabyte File System. The ZFS filesystem is a 128-bit filesystem. The ZFS supported filesystem size is 3×10(to the poer 24) TB. You may never encounter such a big filesystem in real life. The ZFS filesystem was designed to keep and access an insane amount of data.

Enabling Debian contrib Package Repository:

The ZFS filesystem packages are available in the official Debian 11 contrib package repository. The contrib package repository is not enabled on Debian 11 by default. But you can easily enable it from the command-line.

To enable the contrib package repository, open a Terminal and run the following command:

$ sudo apt-add-repository contrib

The official Debian contrib repository should be enabled.

$ sudo apt-get update

Installing ZFS Filesystem Dependencies:

You must install the libraries that the ZFS filesystem kernel module depends on before installing the ZFS filesystem on Debian 11. Continue reading “Install and Setup ZFS on Debian 11” »

Share

Fix ‘Another Update is Currently in Progress’ Error in WordPress

When you’re experiencing the another update in process error, you need to delete the ‘core_updater.lock’ file from your WordPress database. The easiest way to do this is by using phpMyAdmin.

Note: Before you make changes to your database or WordPress theme files, it’s a good idea to create a full website backup. To learn more, see our guide on how to backup your WordPress site.

Launch the phpMyAdmin app, where you need to select your WordPress database. Once you click your database, it will display all of the tables inside the database.

Then, you need to click the ‘Browse’ button next to the WordPress options tables (wp_options).

This brings up all of the rows inside the options table. 

You need to find the row with the option name ‘core_updater.lock’ and click on the delete button next to it.

Now, phpMyAdmin will automatically delete the row from your database. 

When you go back to your WordPress website, the another update in process error will be gone, and you can continue updating your site. 

Share

Upgrading WordPress Core Manually

  1. First create a full backup of your website. This is very important in case you make a mistake.
  2. Download the newest WordPress ZIP file from wordpress.org.
  3. Unzip the file into a directory on your local machine or in a separate directory on your website.
  4. Deactivate all of the plugins on your WordPress site.
  5. Go to your website root directory and delete your ‘wp-includes’ and ‘wp-admin’ directories. You can do this via sFTP or via SSH.
  6. Upload (or copy over) the new wp-includes and wp-admin directories from the new version of WordPress you unzipped to your website root directory to replace the directories you just deleted.
  7. Don’t delete your wp-content directory or any of the files in that directory. Copy over the files from the wp-content directory in the new version of WordPress to your existing wp-content directory. You will overwrite any existing files with the same name. All of your other files in wp-content will remain in place.
  8. Copy all files from the root (‘/’) directory of the new version of WordPress that you unzipped into your website root directory (or the root directory of your WordPress installation). You will overwrite any existing files and new files will also be copied across. Your wp-config.php file will not be affected because WordPress is never distributed with a wp-config.php file.
  9. Examine the wp-config-sample.php which is distributed with WordPress to see if any new settings have been added that you may want to use or modify.
  10. If you are upgrading manually after a failed auto-update, remove the .maintenance file from your WordPress root directory. This will remove the ‘failed update’ message from your site.
  11. Visit your main WordPress admin page at /wp-admin/ where you may be asked to sign-in again. You may also have to upgrade your database and will be prompted if this is needed. If you can’t sign-in, try clearing your cookies.
  12. Re-enable your plugins which you disabled earlier.
  13. Clear your browser cache to ensure you can see all changes. If you are using a front-end cache like ‘varnish’ you should also clear that to ensure that your customers can see the newest changes on your site.
    Your upgrade is now complete and you should be running the newest version of WordPress.

Ref: https://www.wordfence.com/learn/how-to-manually-upgrade-wordpress-themes-and-plugins/

Share

Creating a Sudo User in Debian or Ubuntu

Creating a Debian Sudo User

Creating a Debian sudo user involves a few simple steps. This procedure does not require you to edit the sudoers file. If you have an existing user that you want to grant sudo privileges, skip Step 2.

Step 1: Log in as the Root User

Before you can add a user to your system, log in to your server as the root user:

ssh root@ip_address

Replace ip_address with the IP address of your server. Continue reading “Creating a Sudo User in Debian or Ubuntu” »

Share

Add PHP 7.4 support on Virtualmin GPL on CentOS 7 Distribution

Install Remi Release repo and clear cache

yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm && yum clean all

Install PHP packages version 7.4 and/or 8.0

yum -y install php74-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd,opcache,bcmath,imagick,mbstring}
yum -y install php80-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd,opcache,bcmath,imagick,mbstring}

Configuring Individual Virtual Servers

You can configure the PHP version being used for a specific Virtual Server by selecting Server Configuration -> PHP Options.

The first line there specifies what PHP version will be used by default.

If you wish, you can specify a different PHP version to be used for a specific directory.

Src:
https://forum.virtualmin.com/t/php-7-4-not-showing-as-option-under-virtualmin/104088
https://stackoverflow.com/questions/64370480/linux-add-php-7-4-to-webmin-virtualmin
https://www.virtualmin.com/documentation/web/multiplephp/#Installing_PHP_74_andor_80_on_CentOS_7

 

Share

Using NSLOOKUP to view DKIM records

NSLOOKUP is a quick and convenient way to verify that your DK/DKIM records are set up properly. The policy for DK/DKIM is a TXT record at this location:

_adsp._domainkey.<domain.com>

For the selector record you have to use:

<selector>._domainkey.<domain.com>

For example, do a NSLOOKUP for TXT at: c3po._domainkey.altn.com

Open the Start menu
Select Run...
Type cmd [Enter]
In the command window, type: NSLOOKUP [Enter]
Type: set q=txt [Enter]
Type: dcontrol._domainkey.tweenpath.net [Enter]
Share

Remove Old Kernels of Debian/Ubuntu

To find out the current version of Linux kernel running on your system, use the following command.

$ uname -sr
Linux 4.12.0-041200-generic

To list all installed kernels on your system, issue this command.

$ dpkg -l | grep linux-image | awk '{print$2}'

linux-image-4.12.0-041200-generic
linux-image-4.8.0-22-generic
linux-image-extra-4.8.0-22-generic
linux-image-generic

Remove Old Unused Kernels on Debian and Ubuntu

Run the commands below to remove a particular linux-image along with its configuration files, then update grub2 configuration, and lastly reboot the system.

$ sudo apt remove --purge linux-image-4.4.0-21-generic
$ sudo update-grub2
$ sudo reboot

Removing Old Kernel in Ubuntu Continue reading “Remove Old Kernels of Debian/Ubuntu” »

Share