Ubuntu

libapache-mod-auth-mysql "MySQL Server has gone away" fix

I've been using libapache2-mod-auth-mysql for a CiviCRM site which requires authentication from a Drupal DB, and
it worked well generally but gave intermittent MySQL disconnections. These were making the authentication fail with an error 500, which was ... ugly ...

It took lots of digging, but eventually I found a simple patch that seems to fix the problem. It simply tells MySQL to reconnect when the link fails, which was (before MySQL 5.0) the default but isn't any more.

Xen + Ubuntu - disabling tty2 getty respawning

New Xen host. Inittab respawns tty2, tty3, tty4, tty5, tty6 - all consoles which don't really exist on the domU.

Ubuntu doesn't use the inittab entries (maybe it does for some boot processes), but rather a series of files in /etc/event.d to respawn the getty entries.

Without disabling these entries, you'll end up with a /var/log/syslog looking like this:

Mar 27 06:25:12 xmm2 init: tty5 process (8557) terminated with status 1
Mar 27 06:25:12 xmm2 init: tty5 process ended, respawning
Mar 27 06:25:12 xmm2 init: tty4 process (8558) terminated with status 1

Syndicate content