Bill

run-periodic-tasks Cron error

Vote 0 Votes

I'm getting Cron errors when attempting to run run-periodic-tasks. I followed the instructions on this page: Setting up run-periodic-tasks.

http://www.movabletype.org/documentation/administrator/setting-up-run-periodic-taskspl.html

I have a dedicated server at Pair. They have a control panel that is not standard cPanel or Plesk, but I can run Cron jobs through it.

Using the example on the above page:
/path/to/mt; perl ./tools/run-periodic-tasks -verbose >> /var/log/httpd/mt.log
I was getting the error:
cannot create /var/log/httpd/mt.log: Permission denied

So I adjusted the permissions. Now I get this error:
/path/to/mt: Permission denied

/path/to/mt is actually a symlink to the MT folder. If I alter the permissions on the symlink then it alters the permissions in the MT folder. All the permissions are standard in the MT folder. I'm not sure what to change.

Reported on Movable Type 4.3

8 Replies

| Add a Reply
  • Hi, Bill

    The phrase written in manual page must be replaced to your own environment.

    Please modify "/path/to/mt" to your original directory you installed your MT.

    For example, if you have installed your MT to /home/Bill/cgi-bin/MT, the configuration line should be like this;

    cd /home/Bill/cgi-bin/MT; perl ./tools/run-periodic-tasks

    As manual page says, "-daemon -verbose >> /var/log/httpd/mt.log &" is for using run-periodic-tasks as a daemon mode, and perhaps you cannot use this line because you are using shared-hosting service and you don't have permission to set your original daemon to your server.

  • Thanks for the reply.

    I have the "/path/to/mt" set to the correct location on my server, but I chose to use the example text in my posting.

    The Cron error I am getting shows up in "mt.log". It shows:
    /path/to/mt: Permission denied
    (Of course with the path to my actual MT install)

    As mentioned above I'm not on a shared server.

    I was trying to get the Cron to work before trying to run this as a Daemon.

  • Hi, Bill

    If your configuration to the installed path is correct, your directory's permission may be the cause of the issue.

    How are your directories' permission -- not only "/mt" but also "/tools" ?

    These directories should be executable, like "755" or "705".

  • Both /mt and /tools are 755
    All of the files in /tools are set to 755

  • How about upper directories("path/to") ?

  • /root/cgi-bin is 755 as well

  • should be owned by apache (or whatever id runs MT)

  • It was owned by the same user id as MT.

    Adding in the full path to perl on my server seems to have made the difference (in my case /usr/bin/perl). The script now appears to be running and logging its progress.

    Thanks for the help!

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012