Dreamhost and Cron Jobs

If your web hosting provider is Dreamhost, you can easily set-up a cron job that will make those special PHP scripts of your run.

Here's what worked for me: Use this syntax if you want a certain PHP script run every X minutes:

wget -O /dev/null http://www.example.com/folder/script.php

This assumes that you will use the Dreamhost Panel (nope, it's not cPanel), that you have defined a user which has shell access, and that your cron job will run a maximum of 12 times each hour (or every five minutes).

If you're thinking of running a cron job every minute at Dreamhost, forget it. And if you thought you can define multiple cron jobs and have them run essentially the same command, forget it as well. I'm certain, though, there will be someone who'll figure out how to create cron jobs that run every minute, but think of what the impact will be on the shared server.

Of course, there may be scripts that are lightweight, but do you really need a minute-by-minute cron? Perhaps you should get a virtual private server, or even dedicated hosting.

Anyway, that's what worked for me as far as DH shared webhosting and cron are concerned.

[ First posted on 06/25/2009 by Manuel Viloria ]



Do you LIKE this page? Please let us know, and we will publish more of the content that YOU want. Salamat po!


"Yes, I Want To Grow My Financial Life & Get The 11 TrulyRichClub Blessings!"

To Grab This Offer, Click Option Below:

Truly Rich Club Philippine Residents Click Here

Truly Rich Club International Residents Click Here



Visit SupremeWealthAlliance.net ~ Kumita sa Internet, Kahit Super-BUSY Ka

Get In Touch With Manuel Today
Manuel@Viloria.net



  Previous Entry
  Next Entry




Secondthoughts @ Viloria.com
"Invest in yourself, before
others will invest in you."
-- Manuel Viloria


Viloria.com
About Manuel Viloria
Secondthoughts
Archives
Angelhouser
Contact Us
Privacy Statement
RSS Feed


Google Reader


Copyright © 1996 - 2015 by Viloria.com All Rights Reserved.