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
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
If cPanel is reflecting the wrong PHP version in cPanel –> Server Information
Use the steps below to fix the issue.
rm -f /etc/apache2/conf.d/php.version
After running these commands, you should restart the Apache web server to ensure that the changes take effect:
Note that depending on your cPanel installation and configuration, there may be additional steps required to ensure that the correct PHP version is being used by all services on the server.… Read the rest
Here is a brief explanation of each path:
/var/cpanel/ssl/apache_tls/hostname/certificates: This is the directory where the SSL certificates for the Apache web server are stored. The hostname folder contains the certificate files for the specific hostname used for the cPanel account.
… Read the rest
If you are experiencing a “Certificate Expired” error in FileZilla when attempting to connect to an FTP server on your cPanel server.
openssl s_client -connect yourserver.com:21 -starttls ftp
Verification error: certificate has expired
Restarting the FTP server can sometimes resolve the issue.… Read the rest
You can create a database, database user, and grant privileges using the cPanel User API (UAPI) command line interface.
Connect to your cPanel account using SSH.
Type the following command to create a new database:
uapi --user='cpanel_username' Mysql create_database name='database_name'
Replace ‘cpanel_username‘ with your cPanel account username and ‘database_name‘ with the name of the database you want to create.… Read the rest