Updates from December, 2011 Toggle Comment Threads | Keyboard Shortcuts

  • Jay Versluis 6:34 pm on December 29, 2011 Permalink | Reply
    Tags: , , ,   

    Categories: Linux ( 101 ), PHP ( 29 )   

    What’s the full path to php in CentOS? 

    The path to PHP is


    This is good to know if you need to setup a cron job which triggers a PHP file. Calling it from a web browser directly is not a problem, but if you have to call it from the command line or as a scheduled task you need to call it with

    /usr/bin/php yourfile.php

    You can also use wget or cURL but that’s often not reliable.

    If your PHP file gives you an output (usually to the browser screen), your server will send you an email. If you;d rather this didn’t happen, direct it to nowhere like so:

    /usr/bin/php yourfile.php > /dev/null 2>&1

  • Jay Versluis 3:04 pm on December 24, 2011 Permalink | Reply

    Categories: Linux ( 101 ), Plesk ( 76 )   

    How to avoid emails from Dr. Web 

    Dr. Web is a Russian anti-virus utility that comes bundled with Plesk. It’s good and it tries to keep the bad guys out.

    To keep up with all the mutations out there it tries to update itself frequently. B default, Plesk sends the system admin an email when this happens – no matter if Dr. Web was successful or if there was a problem.

    This is what a sample email looks like:

    Dr.Web update details:
    Update server: http://update.us1.drweb.com/plesk/700/unix
    Update has begun at Thu May 17 03:37:07 2011
    Update has finished at Thu May 17 03:38:16 2011
    Following files have been updated:

    Multiply that email by the number of servers you’re looking after, and you’ll soon have an overflowing inbox.

    Here’s the solution: tweak a system file and divert those emails to nowhere.

    (More …)

    • John Smith 11:14 am on August 23, 2012 Permalink | Reply

      Nice find and resolution.
      Thank you.

    • Jay Versluis 8:31 am on May 24, 2018 Permalink | Reply

      In later versions of Plesk, the file /etc/cron.daily/drweb-update is not a single line anymore, it’s grown into a few. This trick still works though, as the line that calls the update script (/opt/drweb/update.pl) is still included. Amend this line with the /dev/null trick shown above and emails will be silenced.

  • Jay Versluis 6:17 pm on December 13, 2011 Permalink | Reply  
    Categories: Announcements ( 7 )   

    Say hello to WP Hosting 

    After well over a year I am very pleased to share with you our latest business venture:

    WP Hosting – the easiest way to get a self-hosted WordPress site.

    WP Hosting has been in the making for quite some time, and what better way to make its launch coincide with the release of WordPress 3.3. With it come some fundamental changes to the way we do things here – let me explain the details.

    (More …)

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc