Category: Linux

Find Cause of Spam Source

Mass suspend or unsuspend mailboxes of a domain Using the API, can help you quickly automate that process and suspend the users in question: If you wish to suspend the entire domain, you can use: To Unsuspend: If you prefer to suspend a specific email account login, you can use the suspend_login API call. To suspend

Read more

How can i disable MySQL strict mode ?

To Disable Strict Mode via SQL  Then, you can verify that the mode is set by running the following : Disable Strict Mode via my.cnf: Disable it by setting your own SQL_MODE in the my.cnf file, then restart MySQL. The my.cnf file can be found in one of a few locations (depending on which distribution

Read more

How to give a user permission to restart apache?

Using visudo, add the following to your sudoers file, replacing username with the proper username: If you want to not have to type in a password before you do this, use the following: After this, the ‘username’ user can execute sudo /etc/init.d/apache2 start (or stop, restart,etc) You’ll likely want to setup a separate user for

Read more

MySQL SHOW USERS: List All Users in a MySQL Database Server

MySQL SHOW USERS: List All Users in a MySQL Database Server: To get more information on the user table, you can preview its columns using the following command: To show users and other information such as host, account locking, and password expiration status, you use the following query: SELECT user, host, account_locked, password_expired FROM user; To get

Read more

cPanel PHP-FPM php error log rotation

How to set up PHP error log rotation in cPanel When cPanel server uses PHP-FPM it does only control the log rotation for system-like log files, which are sitting at /opt/cpanel/ea-phpXY However it does not rotate PHP error log generated and stored at /home/<user>/logs/domain.com.php.error.log Modern CMSes may produce huge amount of Warning and Deprecated log entries in

Read more

modsec.sqlite file size

How can I clean or empty the contents of this file and not cause any problems in the operation of cPanel? It would clear the database having the hit list and setup_modsec_db would create a clean empty one.

Read more

WHM: Install SSL certificate for Hostname

Initially, to install the Let’s Encrypt provider, we run the following command: Once we install the Let’s Encrypt provider, we change the auto SSL provider to Let’s Encrypt from Comodo. To do so, we log in to WHMand go to Manage AutoSSL. Install Self-Signed Certificate to Hostname. 1) Here, we log in to WHM as

Read more

Cleanup a /var/log/journal

We can delete everything inside of /var/log/journal/* but do not delete the directory itself. You can also query journalctl to find out how much disk space it’s consuming: You can control the size of this directory using this parameter in your You can force a log rotation: You might need to restart the logging service to force a log

Read more

Detecting access breaches:

Check who is logged in (and where from) w, the hacker might be logged in and working as you speak. Take note of the usernames used and their IP location. Most likely if they’ve gotten this far, they’ve gained root access. Do NOT try to kick them out just yet! You don’t know how much access they

Read more