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
Month: August 2018
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.
-bash: host: command not found
Fix This can be fixed by yum install bind-utils jwhois
How to suspend a parked domain using .htaccess rule
We can suspend a parked domain using Rewrite rule in .htaccess while keeping the main domain intact. In .htaccess file, add the following. RewriteCond %{HTTP_HOST} ^parkdomian.org$ [OR] RewriteCond %{HTTP_HOST} ^www.parkdomian.org$ RewriteRule ^(.*)$ http://x.x.x.x/suspend.txt [R=301,L] where x.x.x.x is the server IP.