Linux CentOS

Linux CentOS
How To Setup a Subdomain with SSL on Amazon Linux 2 AMI
September 16, 2021
0
, , ,
I assume that you can login to Amazon Linux 2 AMI console. Once you login there, type the below command to find where are host file configuration: #apachectl -S go to /etc/httpd/conf.d/ as I can see the hosts file are setup under that folder. # cd /etc/httpd/conf.d/ # ls -al You will see all the […]
Linux CentOS MySQL 5.7
MySQL “Order By Clause” Not Working with “SELECT DISTINCT and ORDER BY” after MySQL Update to 5.7
April 8, 2021
0
, , ,
I have recently updated our MySQL server to MySQL 5.7. Then I have found that in all the projects that has “SELECT  DISTINCT and ORDER BY” SQL statements, are not working anymore. In Order to Fix that I followed the below procedure: Logged in To Server (CentOS 7). In console mode typed # mysqld –help […]
Commands Linux CentOS php Server WHM
WHM:: PHP Mail is Not Working-Showing Its Disable
June 24, 2020
0
When your mail does not work, one example could be as below: Now Update your php.ini from WHM MultiPHP INI Editor, you can see: disable_functions = mail Modify it with disable_functions = Click Save Restart your APACHE from WHM or command prompt.
Commands Linux CentOS
How to Whitelist IP/ finding if IP is Blacklisted in Linux CentOS
June 18, 2020
0
1. How to check if an IP is Blacklisted: If you want to blacklist the IP 123.45.67.89 , then run the below command: $ /scripts/cphulkdblacklist 123.45.67.89 You will see a message that the IP has been blacklisted. ####################################################### 2. How to whitelist an IP that is Black Listed If you want to Whitelist the IP […]
Cleaning Commands Linux CentOS
How To Check for Virus / Malware Script in Server / WordPress Site
May 25, 2020
0
,
Check Recently Modified Files in Server Login to server through SSH, run the below commands to find out which scripts have been uploaded recently $ cd /home/public_html/$ find ./ -type f -mtime -15 (this code checks all files that has been uploaded / modified in last 15 days) $ find /etc -type f -printf ‘%TY-%Tm-%Td […]
Commands Email Linux CentOS Server Uncategorized
DKIM Set for my subdomain
January 26, 2020
0
, , ,
I faced so much trouble while setting DKIM for one of my sub domain, there are so many online tutorials but not a single tutorial that describes everything at one spot. So I was thinking why not I write my own blog on it. What is DomainKeys Identified Mail (DKIM)? DomainKeys Identified Mail (DKIM)? It […]
Commands Linux CentOS
Linux Centos: How to Zip All Folders except Garbage Folder
September 29, 2019
0
Making Zip files of folders except some garbage folders which I do not need: I do not need tmp folder & tmp2 folder but I need all other folder f zip -r mybackup.zip dir1 -x tmp/ignoreDir1/**\* tmp2/ignoreDir2/**\*
Commands MySQL
Upgrading MySQL 5.6 to 5.7 – Group By Does not work anymore
September 17, 2019
0
Recently I have updated one of my server MySQL, then I have found that old MySQL Group By Query is not running anymore. It happens because of  notorious nonstandard MySQL extension to GROUP BY Go To Mysql console: Type the below command & see what are current SQL mode: SELECT @@GLOBAL.sql_mode; Type the below command to […]
Commands Linux CentOS
Deleting Large Folder for which it was showing “bash: /bin/rm: Argument list too long”
June 22, 2018
0
, , ,
I was recently needed to delete a large number 10,000,00 files in one of folder running on Linux CentOS. I was running the below command inside the folder  rm -rf *  but it was giving me below error message: bash: /bin/rm: Argument list too long I could not remove them, I take help of Linux  find […]
Commands Linux CentOS
How to Turn Off Notification for – Large Amount of Outbound Email Detected
June 22, 2018
0
Please log into your WHM and navigate to »Server Contacts »Contact Manager, then click on the Notification tab. Search by “Large Amount of Outbound Email Detected” and lower/disable.