wwwhizz' blog Jan Kazemier & his music, photography, nerd-projects, developing, electronics and gadgets

29Jun/101

Blog 2.1

I've been doing a few updates to my website. I have:

  • updated:
    • WordPress
    • WordPress plugins
    • LightWord theme
  • chosen the wider variant of the LightWord theme
  • created a child-theme of the LightWord theme
  • added a few plugins
  • added my twitterfeed to the right
  • created a custom 404-page ;)
  • I'm planning to add a few pages:
    • Change my avatar
    • My homemade music
    • Stats
    • My twitterfeed
Filed under: Uncategorized 1 Comment
27Jun/090

phpMyAdmin: Invalid hostname for server 1. (updated)

phpMyAdmin was complaining about "Invalid hostname for server 1. Please review your configuration."

The error is in /var/lib/phpmyadmin/config.inc.php and seems to be a security bug in Lenny.

$cfg['Servers'][$i]['host']=''; phpinfo();//'] = 'localhost';
should be:
$cfg['Servers'][$i]['host']= 'localhost';

After saving your file, no error occurs anymore :)
However, this error is due to a security leak in phpMyAdmin. Upgrade your Debian and you should be fine. However, just to be sure, you can do the following:

sudo nano /usr/share/phpmyadmin/.htaccess

and paste:

<Files "config.inc.php">
Order allow,deny
Deny from all
</Files>

Save and check whether http://www.yourdomain.nl/phpmyadmin/config.inc.php gives a 403-error. If it does, you're good :)

27Jun/091

Fixed it!

My blog was down for a few weeks. I tried to upgrade my WordPress installation while not having a lot of time. Bad idea. It somehow didn't work, and after reinstalling WordPress and importing the database today it works again. Woohoo :D

Filed under: Uncategorized 1 Comment
27Apr/090

Make monit send less email

Today I found some nice extensions in the monit configuration file.

If you only want an alert message sent for certain events and just for some services, then append the alert-statement with the following lines.

check process apache2 with pidfile /var/run/apache2.pid
alert myemail@adress.ext only on { timeout, nonexist }

Only and on are so called "noise keywords", ignored by Monit to make it more readable.

You can also setup to send alerts for all events except some by putting the word "not" ahead of the list. For example, if you want to receive alerts for all events except Monit instance events, you can write (note that the noise words 'but' and 'on' are optional):

check system myserver
alert foo@bar but not on { instance }

instead of:

alert myemail@adress.ext on { action
checksum
content
data
exec
gid
icmp
invalid
fsflags
nonexist
permission
pid
ppid
size
timeout
timestamp }

Some parts of this are taken from the Monit Documentation

24Apr/092

Blogs come and blogs go

Actually, I wasn't planning on having a blog. Then a friend of mine showed me how well WordPress works, and I quite liked it. Thought I might give it a go. I'll post my worklog on my midibox here, some small Debian HOW-TO's as well as some tech-related stories.

Comments are highly appreciated :)