RSS icon Adam Taylor Orlando Florida Webmaster, Web Designer & SEO Expert
 
  • How to set cron jobs for InfiniteWP on 1&1

    Posted on February 17th, 2016 Adam Taylor No comments

    InfiniteWP is an amazingly FREE tool for managing multiple WordPress sites. With InfiniteWP properly installed you can connect to an unlimited number of WordPress sites once you install the InfiniteWP Client Plugin.

    This FREE WordPress management tool will allow you to complete mundane tasks like…

    • Login to all WordPress admin areas using one master login
    • Update WordPress, plugins and themes across all your sites
    • Instantly backup and restore an entire website or just the database
    • Bulk manage plugins and themes on multiple sites simultaneously
    • Install plugins and themes across multiple sites at once

    Now, although this is a free WordPress tool and it’s already packed with some handy features you can always purchase additional addons and unlock it’s full power. The premium addons for InfiniteWP can be purchased individually or in a bundle at a massive discount.

    Let’s Install InfiniteWP

    There are a few options when it comes to installing InfiniteWP. You can get expert installation (contact me), install via cPanel, use a WordPress plugin or do it yourself. If you followed the DIY installation guide you might notice that it’s lacking details on setting up the cron job and sometimes this can be tricky depending on your host, let’s cover how to set it up on 1&1.

    Setup InfiniteWP Cron Job on 1&1 Hosting

    When you log into the InfiniteWP admin a message tells us to set up a cron job with the following command.

    php -q -d safe_mode=Off /kunden/homepages/XX/XXXXXXXXXX/htdocs/FOLDER/cron.php >/dev/null 2>&1

    When using the above command you will soon find that the message wont go away and the cron job will not work, this is because of two reasons. First the location of php is “/usr/bin/php” and then by default 1&1 runs PHP 4 but the tool requires 5.2.4 or higher to operate. Now we know the problem we will adjust our cron task as follows.

    */20 * * * * /usr/bin/php5.4 -q -d safe_mode=Off /kunden/homepages/XX/XXXXXXXXXX/htdocs/FOLDER/cron.php >/dev/null 2>&1

    As you can see the above command will run every 20 mins using PHP 5.4. The -q flag suppresses HTTP header output and the -d safe_mode=Off defines an INI entry safe_mode with value ‘Off’. After we point to the location of cron.php we have >/dev/null 2>&1 which will stop cron from emailing you every time it runs.

    Let’s Wrap Up

    I hope you find this information valuable, please let me know your thoughts. Also, if you have experience setting up the cron task and want to share your command, please comment with the details and name of your hosting provider.

    The following two tabs change content below.

    Adam Taylor

    Owner / CEO at MyWebsiteSpot.com
    I'm an untiring advocate for internet security, despise email spam, own an Orlando Web Design & SEO Company and most importantly... I always offer FREE advice.

    Leave a reply