/usr/bin/archivemail --quiet --delete --days 30 /home/{USER}/mail/inbox
Enable and install iptables in centos 7
If you need to disable firewalld and use iptables in server use the following steps. First, stop and mask the firewalld service: systemctl stop firewalld systemctl mask firewalld Next, install the iptables-services package and enable the service to start at boot: yum install iptables-services systemctl enable iptables Then, saving the firewall rules can be done … Continue reading Enable and install iptables in centos 7
Cleaning the Linux Memory cache
To free pagecache:# echo 1 > /proc/sys/vm/drop_caches To free dentries and inodes:# echo 2 > /proc/sys/vm/drop_caches To free pagecache, dentries and inodes:# echo 3 > /proc/sys/vm/drop_caches
What is rpm justdb?
If you came across an RPM issue regarding any system or other critical rpms need to remove from server to resolve the upcp, yum update issues, you can use RPM "--justdb" option instead of removing the entire RPM. This "justdb" option only removes that particular RPM entry from RPMDB on server. +++++++ Eg: -bash-4.2# rpm … Continue reading What is rpm justdb?
Error : lowest numbered MX record points to local host.
While sending mails from the email account following error was getting generated and mail sending was getting failed. Fix Remove the entry for the domain from /etc/remotedomains and add the domain in /etc/localdomains
joomla site loading error in browser : “The URL is not valid and cannot be loaded”
Fix Disable the joomla module mod_wrapper.
nagios nrpe error – checking for SSL headers… configure: error: Cannot find ssl headers
While installing nagios nrpe plugin there was following error checking for SSL headers… configure: error: Cannot find ssl headers Fix yum install openssl-devel
Error configure: *** apu library not found
Fix This can be fixed by using yum install apr-util-devel
SSH login getting delayed for minutes even though server is stable
Fix Check whether UseDNS parameter is enabled in ssh config file sshd_config. UseDNS no Restart the ssh service
To enable slow query log in MySQL
Create the file mysql-slow.log in /var/log/ directory. Add the following entries in /etc/my.cnf log-slow-queries = /var/log/mysql-slow.log long_query_time = 1 restart mysql service.