Posts By: jonny

Apache MaxRequestsPerChild 10000

We found that Apache 1.3 was periodically using up all the memory and swap space on a machine and stumbling on the post below we decided to reduce MaxRequestsPerChild from the apache conf advised value of 10000 for Solaris down to 100 or 500. Hopefully this will reduce susceptibility to memory leaks. —- ORIGINAL MESSAGE… Read more »

Plesk Horde Issues with Sending Mail

For future reference …Had a few issues related to Horde sending mail. Although it appeared as though the mails were sent there was an issue with Horde using Sendmail.One proposed solution was to edit php.ini and amend the disable_functions line in /etc/php.ini and remove the popen and escapeshellcmd functions so that PHP/Horde can use these… Read more »

PHP LDAP Search Root of Active Directory

Using PHP to query Active Directory resulted in a few problems e.g. Warning: ldap_search() [function.ldap-search]: Search: Can’t contact LDAP server in … ldap_search(): Search: Operations errorWarning: ldap_search() [function.ldap-search]: Search: Partial results and referral received The errors only appeared when trying a search from the AD root, the errors disappeared when the search was carried out… Read more »

Prettifying Nagios

The default installation of Nagios is pretty ugly but can be tarted up with the Nuvola icons and some stylesheets from the following page:http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1723.html;d=1 Scroll down the page to the files section and download the Nuvola file. Extract it and copy the contents of the ./html directory into the nagios web directory (/usr/local/nagios/share/html on debian)…. Read more »

New iPod Nano Video on Ubuntu

Used the instructions at the following link:http://maketecheasier.com/how-to-sync-amarok-with-ipod-classic-3rd-generation-ipod-nano/2008/03/10to get the new iPod Nano Video working. Shame Apple can’t be more open!Now to work out how to get videos working on it…

MySQL: mysql is not running but lock exists

A MySQL crash on Red Hat system resulted with: /etc/init.d/mysql status coming back with: mysql is not running but lock exists Solved by removing the lock file: rm /var/lock/subsys/mysql If this happens again it may also be necessary to remove the pid file from /var/lib/mysql

Password-less SSH for Rsync from Solaris

This short article will demonstrate by example password-less ssh from a Solaris 8 box which will backup the contents of a linux box using rsync.In the example there are 2 users involved and 2 machines involved:User: bak2solaris Machine: mylinuxbox (RHEL/Centos) User: root Machine: mysolarisbox (Solaris 8)A cron job will run on machine 'mysolarisbox' as root…. Read more »

SpamAssassin: Overriding default scores

If desired the default scores for rules in spamassassin (located in /usr/share/spamassassin/50_scores.cf) can be changed by setting the scores either in /etc/mail/spamassassin/local.cf or another .cf file in the directory. For example, my_scores.cf could define: # added an extra half point to the surbl checksscore URIBL_AB_SURBL 2.113score URIBL_JP_SURBL 3.357 score URIBL_OB_SURBL 2.632score URIBL_PH_SURBL 2.535score URIBL_SBL  … Read more »

First Aide for Intrusion Detection

I was considering installing tripwire on a CentOS 5.1 install but I happened upon an article about 'aide' which also notifies the system admin about changes to core files (and thus possible intrusions) Of course any genuine newly installed software may also trigger differences in the aide database. yum install aide If not using SELinux… Read more »