When trying to compile PHP I noticed the libmcrypt package is no longer provided with EL6 / CentOS 6, checking whether to enable multibyte string support… no checking whether to enable multibyte regex support… yes checking whether to check multibyte regex backtrack… yes checking for external libmbfl… no checking for
Continue readingCategory: System Administration
System administration and web operations.
nginx rewrite PHP with no extension
I recently had to troubleshoot an issue while migrating from cherokee to nginx. This was a PHP application which had a shared set of common scripts , these where accessed by domain/common/file which in turn was translated into /vhosts/shared/common and this then included the necessary files. After doing the rewrite
Continue readingMax processes 1024 limits.conf
We where having an issue with replica sets on our MongoDB databases changing primaries. The logs shows it was hitting resource limits creating new processes. [initandlisten] pthread_create failed: errno:11 Resource temporarily unavailable [initandlisten] can’t create new thread, closing connection There is a bug fix in the init.d available per https://jira.mongodb.org/browse/SERVER-6443
Continue readingVarnish Nagios Check
**Update: 2 July 2014. Updated to new version 1.1 I have written a check for nagios/icinga to check the varnish backend health. You can get the latest version from github . The version at the time of posting at the bottom of this message. The defaults are RHEL defaults and
Continue readingERROR: Module backupdriver is in use
While updating several of our remaining systems from r1soft CDP 2 to CDP 3 we’ve been getting the following error, ERROR: Module backupdriver is in use r1soft-uninstall-buagent -R This uninstaller will remove the following.. File /etc/init.d/buagent File /usr/bin/buagent File /var/lock/buagent.lock File /var/run/buagent.pid File /usr/bin/r1key File /usr/bin/r1soft-cki File /usr/bin/r1soft-report.sh File /usr/bin/r1soft-uninstall-buagent
Continue readingMounting ext2/ext3 partitions on windows
Today I needed to mount one of my USB sticks on windows to copy some files over. To get windows to recognise it I altered/etc/mke2fs.conf and done the following. Removed ext_addr from “base_features” and commented out the inode_size line. Here is a diff from the default ubuntu e2fsprogs /etc/mke2fs.conf with
Continue readingWordPress Auto Wrapping Code
When posting code it wasn’t wrapping text properly on my blog due to how narrow it is. Luckily there’s some easy code that already exists to solve this so reposting it. height: 120px; overflow: auto; font-family: “Consolas”,monospace; font-size: 9pt; text-align:left; background-color: #FCF7EC; overflow-x: auto; /* Use horizontal scroller if needed;
Continue readingSetup mySQL replicated slave using r1soft
Using r1soft mySQL addon to setup mySQL replication slaves requiring read locks in seconds rather than hours for non transactional tables.
Continue reading2010 Recap
So another year has passed and I have made 0 entries to the blog. This shall be the 8th post in 6 years. I thought it would be only fitting that I atleast end the year with a blog post and a commitment to blog more in 2011. This blog
Continue readingOutbound DoS
Last Sunday I had a new customer sign up to our Linux Server Management company and one of the issues they were receiving was bandwidth overages for continual outbound DoS attacks their system was performing but they were unable to track. So in effort to find the initial cause of
Continue reading