RSS
 

Archive for December, 2010

Howto: Solving problem with logrotate

25 Dec
/etc/cron.daily/logrotate:
 
error: error running shared postrotate script for /var/log/mysql.log
/var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log
 
run-parts: /etc/cron.daily/logrotate exited with return code 1

Have you been getting this cryptic error message before?

Here is how to get rid of it:

View /etc/mysql/debian.cnf. Look for

user     = debian-sys-maint
password = newpass

Log into mysql as root

mysql -uroot -p
SET PASSWORD FOR `debian-sys-maint`@`localhost` = PASSWORD('newpass');
SET PASSWORD FOR `debian-sys-maint`@`%` = PASSWORD('newpass');
FLUSH PRIVILEGES;

Log out and it should be fixed.

 
No Comments

Posted in Howto, Linux

 

Howto: Install XAMPP 1.7.2 on Windows 7 with XDebug and Netbeans

25 Dec

Hi,

Just for my own reference and some other poor people out there trying to get this to work:

  1. Download XAMPP 1.7.2 from sourceforge.net/projects/xampp/files/XAMPP%20Windows/1.7.2/xampp-win32-1.7.2.exe/download
  2. Install
  3. Download php_xdebug-2.0.5-5.3-vc6.dll from xdebug.org/download.php
  4. Place it in C:\xampp\php\ext
  5. Edit C:\xampp\php\php.ini add:
    zend_extension = “C:\xampp\php\ext\php_xdebug-2.0.5-5.3-vc6.dll”[xdebug]

    xdebug.remote_enable=on

    xdebug.remote_host=127.0.0.1

    xdebug.remote_port=9000

    xdebug.remote_handler=”dbgp”

  6. Enjoy!
 
 

Howto: Postfix aliases setup email account

25 Dec

Edit /etc/postfix/virtual.cf .

vim /etc/postfix/virtual.cf

Add line:

user@example.com localusername

postmap /etc/postfix/virtual.cf

vim /etc/aliases

Add line:

localusername: someother@othersite.com

newaliases

 
No Comments

Posted in Howto, Linux

 

Manawatu Jazz Club Big Band Concert – Christmas Club Day

08 Dec

It’s time for the yearly Christmas concert of the Manawatu Jazz Club Big Band.

It’s on

Sunday 12th December 4:30pm
@ the ANZAC Lounge RSA on Broadway

Featuring

Johnny McCormick
and
The Manawatu Jazz Club Big Band

With
Vocalists
Erna Ferry & Meri Hammi

This is the Annual MJC Big Band Benefit Concert to thank them for their valuable contribution through the year… take some time out from the Christmas rat race and bring lots of friends.

Members $10, non members $15, Secondary School Students $5
Meals & Full Bar Service
~All Welcome~