Author Archives: itdoctor - Page 33
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...
PHP7: Parse error: syntax error, unexpected ‘new’ (T_NEW)
You might see that error when upgrading from PHP5 to PHP7 your code might look like this: $this->smilies =& new smilies_package($this->current_smilies); Solution: just remove & , it will...
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....
Pairing Logitech Mouse B175 M325
My old Logitech B175 was lost, i still have the receiver. One day i found another Logitech Mouse M325, this one doesn’t have the receiver. How can i pair...
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...
Mysql Replication error: Slave failed to initialize relay log info structure from the repository after changing hostname
Below are the steps to fix this issue: 1. Shut down your old slave server and make a copy of the data directory to your new slave. Make sure...
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
