Archives for Linux - Page 6
Can’t Use apt i.e. /boot is 100% full
NOTE: this is only if you can’t use apt to clean up due to a 100% full /boot 1. Get the list of kernel images Get the list of...
Dovecot – Iredmail SSL installation
First of all, we need to order a certificate , this certificate is the same with normal web server certificate. The certificate will have 3 files: cert, key, cabundle....
Kill all close wait process
We have seen many cases where the client didn’t close the connection correctly, the process is stuck at CLOSE_WAIT status, i never clear the database connection. We have this...
Auto Restart apache when connection is high
In some situations, our web server receive too many connections. The number is much higher than normal, that could be an issue with our code, or we are being...
Nagios: Add new plugin
Nagios config file is in /etc/nagios-plugins/config Nagios plugin script is in /usr/lib/nagios/plugins
Nagios: nagiosgraph.js is not installed or wrong version.
JavaScript is disabled. is not installed or wrong version. edit file , <Directory "/usr/local/nagiosgraph/share"> Options None AllowOverride None # Order allow,deny # Allow from all...
Check nagios configuration file
If you can’t start nagios server, it could be the configuration file was wrong. Check it before restarting the server /usr/sbin/nagios3 -v /etc/nagios3
Relocation subversion
Command: svn sw --relocate oldpath newpath
Sendmail – control who can send relay
Sendmail use “access” database to control who can use this email server to send email out. It’s easy, just edit this file /etc/mail/access , but access is a...
Godaddy: treat html file as php
I used to put this content in my .htaccess to treat .html as php file, but some how it’s no longer working in godaddy. AddType application/x-httpd-php .htm .html AddHandler...