If you own a shared hosting server, you probably want to keep the /var/log/messages file as clean as possible, to make searching for errors as easy as possible.

One of our web servers had a messages file filled with Drupal errors and warnings. It al seemed to come from one site.
After a bit of searching, it seemed the syslog module in Drupal was enabled. There are two solutions to this annoyance. You can disable the syslog module in the database used by this site, or make syslog log all Drupal errors to a separate file.

Database solution

The most easy method to check and disable the syslog module is disabling this module in the database as follows:

Checking if the module is enabled:
SELECT * FROM system WHERE name='syslog';
If the status column is 0, the module is disabled, in case of a 1 the module is enabled.

To disable the module:
UPDATE system SET status='0' WHERE name='syslog';

And to check if the module is really disabled:
SELECT * FROM system WHERE name='syslog';
The status column should now say 0.

Separate log solution

Create the file /etc/rsyslog.d/90-drupal.conf with the following content, depending on your version of rsyslog.

For rsyslog < v7: # drupal logging
if $programname == ‘drupal’ and $syslogseverity <= '6' then /var/log/drupal.log if $programname == 'drupal' and $syslogseverity <= '6' then ~

For rsyslog >= v7:
# drupal logging
if $programname == 'drupal' and $syslogseverity <= '6' then /var/log/drupal.log if $programname == 'drupal' and $syslogseverity <= '6' then end

That's it. There should be no more Drupal messages in the /var/log/messages file.

I recently bought a PlayStation 3 80Gb. When I tried to install Yellow Dog Linux (YDL) on the PlayStation, I came across a message saying something like:

The partition table on device PS3DA was unreadable.

It also warned me that it would destroy all the data on the drive.

I didn’t like the idea of installing and updating all those games again, so I googled for this warning. I found out that YDL doesn’t have access to the entire disk, but only to the part it is allowed to by the PlayStation Firmware. So the only data it could destroy, was the data on the partition which I had created in the PlayStation 3 menu. This means it doesn’t destroy all data on the disk, but only on the empty partition, where no data is stored.

After the installation and booting into the GameOS, it seemed all my savegames and gamedata was still available. So no worries when you come across the warning I described above, your data will not be lost.

You still might want to backup your savegames before installing YDL, you never know what could happen…

To get Gentoo Linux to boot faster, you can disable unnessicary services (with rc-update).

But Gentoo also provides some exceptional rc scripts. These scripts allow parrallel loading of services. The result is a system which boots much faster. To enable the parallel startup of services, add or change the following line in the file /etc/conf.d/rc:

RC_PARALLEL_STARTUP="YES"

Now, when you boot your Gentoo distro, it will be ready at a glance!

To scan the current folder, with it’s underlaying folders,  use the following command (only when clamav is installed):

clamscan --log=$HOME/clamscan.log --quiet --recursive

In your home directory, the file ‘clamscan.log’ will appear. You may execute the following command to view the (filtered) results:

grep -v "Empty\|Scanning\|WARNING:\|Excluded" $HOME/clamscan.log

If the memory is very full (on Linux), you may execute the following command:

sync; echo 3 > /proc/sys/vm/drop_caches

All the caches are cleared now. Your system may respond a bit slower now, while the caches are being refilled.