Problems With DrWeb Sending Failure e-mail Notices

If you have your own server and you are getting failure notice emails from DrWeb Antivirus, you need to make some changes to your settings.

You should change the crontab of the DrWeb update to not mail you in the first place – this will remove all the spam you recieve at every DrWeb update.

Login to Plesk as Admin.

In the Settings -> Scheduled Tasks -> drweb (just click the link)

You change the Command of the cronjob by adding a “>/dev/null 2>&1″ to the end of command. I.e.

Code:

/opt/drweb/update.pl >/dev/null 2>&1

This will make sure that Crontab does not mail you with the output of the updatescript every time it exits.

Please keep in mind that depending on your OS – for some reason there might also be a crontab entry for the update in your filesystem under

#/etc/cron.d/drweb-update

Where you will also need to edit the commandstring to be “/opt/drweb/update.pl >/dev/null 2>&1″

How To Find A File Using SSH

To find a file on your server using SSH, simply use the “locate” command.

Example: locate fileyouwant.file

This will result in an output of all files on your server with that name

How To Copy File Form One Directory To Another Using SSH

Using SSH to copy a file from one directory to another is done simply with the following command:

cp file.name destination/directory/

How To Update To Latest Version of PHP

Many web applications, including Magento need PHP5.2 to function. If your server doesn’t have PHP 5.2, there’s a simple way to upgrade.

Using SSH, logon to your server.

Use these commands:

wget -q -O – http://www.atomicorp.com/installers/atomic.sh |sh

yum update php

/usr/local/psa/admin/sbin/websrvmng -a

/etc/init.d/httpd reload

That’s it!