For those who noticed their WAN IP address started showing as IPv6
The following command is used to temporary disable IPv6 on a Linux system.
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
It writes the value 1 to the disable_ipv6 file for all network interfaces in the ipv6 configuration.… Read the rest
When you run this wget command, it should start downloading the file, and if the download is interrupted for any reason, it will automatically resume from where it left off when you run the command again. This should help ensure a smooth and complete download.… Read the rest
To find out the previous kernel version on CentOS after a reboot, you can use the rpm command to query the package database. Here are the steps:
Open a terminal or SSH session to your CentOS server.
Type the following command to list all installed kernels:
rpm -qa | grep "kernel-[0-9]"
This will output a list of all installed kernel packages.… Read the rest
If the /var/log/maillog file is stuck writing, restarting the rsyslog service may help in resolving the issue.
service rsyslog restart
However, it is important to understand the potential impact of restarting the rsyslog service, as it can affect the logging for other services running on the server.… Read the rest
To check whether SSL redirection is enabled or disabled in Magento using MySQL command line, you can execute the following SQL query:
SELECT * FROM core_config_data WHERE path LIKE '%web/secure/use_rewrites%';
If the value of the value column is set to 1, then SSL redirection is enabled.… Read the rest
To find out the version of Magento installed on your system via the command line, you can use the following command in the Magento root directory:
php bin/magento --version
grep -A6 'static function getVersionInfo' app/Mage.php
From a browser you may try to reach the following page:
This will display the version number of Magento installed on your system.… Read the rest
The default cPanel limit is 10000
cat /etc/pure-ftpd.conf |grep LimitRecursion
LimitRecursion 10000 8
# ‘ls’ recursion limits. The first argument is the maximum number of
# files to be displayed. The second one is the max subdirectories depth
To increase the view limit of PureFTP on cPanel using whmapi1, you can follow these steps:
– Log in to your server via SSH using the root user.… Read the rest
To untar a cpmove file and then tar it again in the same format as cPanel, you can follow these steps:
First, navigate to the directory where the cpmove file is located using the command line or terminal.
Use the following command to untar the cpmove file:
tar -xvf cpmove-username.tar.gz
… Read the rest
If you find something like below on your server, be sure you’ve detected malicious activity
username 2156075 0.0 0.0 2848 2660 ? Ss Feb09 0:00 [kcached]
username 2156076 0.0 0.0 2852 2660 ? S Feb09 0:01 \_ [kcached]
You can use the lsof command to determine which processes have the files open and whether they are being used for legitimate purposes.… Read the rest