• About Me
  • Best Of
  • Contact Me
  • Forum

Jay Gaulard

  • Home & Living
    • Automotive & Mechanical
    • Carpentry & Building
    • Entertainment
    • Firewood & Heating
    • Gardening
    • Home Improvement
    • Lawn Care & Landscaping
    • Pets & Animals
  • Fitness & Recreation
    • Brazilian Jiu-Jitsu (BJJ)
    • Bushcraft & Camping
    • Hiking & Walking
  • Nature & Outdoors
    • Trees & Shrubs
    • Weather & Seasons
  • Technology & Internet
  • Travel & Destinations
  • Writing & Blogging
    • Ramblings & Opinion
You are here: Home / Technology & Internet / Setting Up a Cron Job in Plesk – Part 2

Setting Up a Cron Job in Plesk – Part 2

December 17, 2007

My cron jobs have been running as scheduled, but the strange part is I have been getting status emails…with errors in them.

I am using the cron jobs (Scheduled Tasks) in Plesk to run my sitemap generators. Every time the generator runs, it deletes the old generated files and creates new ones. I was wondering why I was getting errors. Sometimes, the files wouldn’t generate at all.

I called tech support at my new wonderful hosting company. Melissa explained to me that I set up the cron jobs under the user account for that domain. When the jobs are run via web interface online, they are running under the apache user. When they are run by cron, they are running under a different username, without the same privileges. The cron run is not able to delete those existing files and write new ones.

The way I got around this in Plesk was to click on “Server” (over in the left column) and then “Scheduled Tasks.” Once in the scheduled tasks manager, I clicked on “Apache” to set up the scheduled tasks under that user.

I am running the sitemap right now through the cron job…wait…it just finished with no errors and the files were updated correctly. I did not receive a status email because I set the email address up while the cron job was running. I am running a different site right now and will let you know how it goes.

By the way, Plesk is very good.

Related posts:

  1. Setting Up a Cron Job in Plesk
  2. Alternative To Cron – Windows Scheduler
  3. Setting Up A Lawn Hammock
  4. Setting Up a Cheap Basement Support Beam
  5. Cable vs. DSL

Filed Under: Technology & Internet

What’s Next? Email Updates!

If you enjoyed reading this post as much as I enjoyed writing it, why not sign up to receive my posts by email? It's free and you can unsubscribe at any time!

Comments

  1. Don says

    January 22, 2017 at 6:33 pm

    I am using plesk for the first time, and it is just too basic. I am having to install my own scripts to manage files and so on – eg to compress or uncompress files, backups that can be used on other systems etc.

    It is hard to believe that this is touted as a ‘feature’

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

CONNECT WITH ME

  • Email
  • Facebook
  • Google+
  • RSS
  • Twitter

RECEIVE MY POSTS BY EMAIL!

Interested in receiving my posts by email? This is your chance! Simply place your email address in the box below and I'll deliver each and every post I write directly to your inbox.

Copyright © 2021 · Jay Gaulard My Personal Blog Blog · About · Best Of · Contact · Privacy / Terms · Sitemap