Movable Type: Run Periodic Tasks on GoDaddy Hosting

We experienced an issue running periodic tasks on GoDaddy's servers. "Periodic Tasks" is a tool in the MT library that allows many functions to be run in the background such as publishing entries in the future (Write Entry => Publishing => Status => Scheduled). Here's what we found:

The GoDaddy cron setup wizard requires a full path address to run-periodic-tasks but the resulting cron command is:
cd  /home/content/d/a/a/userid/html/cgi-bin/; ./tools/run-periodic-tasks
Executing the "out of the box" run-periodic-tasks tool from the cron job produced a module addressing error. The code in run-periodic-tasks causing the error was:
use lib 'lib', '../lib'; (go up one level to find the lib directory)
A quick change to the full path of the MT lib directory:
use lib '/home/content/d/a/a/userid/html/cgi/mt/lib/';
got it to work fine.

The "out of the box" run-periodic-tasks code works fine in the icdSOFT hosting environment. The cron job setup is
/home/userid/www/www/cgi-bin/mt/tools/run-periodic-tasks
also using the full path to the task and referencing ../lib works fine.
user-pic

Merv

Specializing in management consulting, marketing, Website/Blogsite development, Movable Type, application of open source software and Activity Based Costing and Pricing for service organizations. Contact us for more information.

1 response to “Movable Type: Run Periodic Tasks on GoDaddy Hosting”

  1. user-pic

    It's really confusion!!

Leave a Comment, Question, Inquiry or Reply ...

Some HTML is permitted: a, strong, em

Current Hybrid News Style: Blue-Gray

Follow BIG

rss icon rss comment icon facebook icon linkedin icon twitter icon feedburner icon

Best Wordpress Source

WPMU DEV - The WordPress Experts

get in MOTION

Featured Technology

Requires Flash Player