homepage Welcome to WebmasterWorld Guest from 54.226.235.222
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Cron job is not available in most hosts?
smagdy




msg:1266444
 8:50 am on Apr 12, 2006 (gmt 0)

Hello,

I am contacting lot of hosts to ask about Cron Jobs if they are available in their Unix package...

But most they no no no... so i don get what to do if i want to run something every hour..

Last respond when i asked if they have alternative was:

"We dont have an alternative.. if 1000 users wanted cronjob the server would crash.. thats why."

So its so strange...

Is it best to set up my own server? though i dono how...

 

Mistra




msg:1266445
 9:06 am on Apr 12, 2006 (gmt 0)

Shared hostings do not allow cron job. They are right about crashing the server. It is time to get a dedicated server. If you cannot afford, cheer up. Get a Virtual Private Server (VPS). It works like a dedicated server and allow you do to cron job and at a much cheaper affordable price.

smagdy




msg:1266446
 9:41 am on Apr 12, 2006 (gmt 0)

But i know there are some shared with cronjobs, and i am already hosting at one of them.. but i am searching for a shared host with cron jobs in Sweden!

Anyways, can u give me a link or something so i can learn more about VPS and also if possible how to set up own server... (is it easy if i know nothing about it?) or should i buy a book?

and how much cheap it could be :)

Thanks in advance

Mistra




msg:1266447
 9:59 am on Apr 12, 2006 (gmt 0)

Set up your own server? Easy or difficult it all depends on you. If you know Linux, I am sure it shouldn't be a problem. Get a book if you think you need it, but make sure you get a good comprehensive one.

I have too many books that I do not have time to read. I have given up on books and now relying on free information online.

I am not supposed to give a link.

You can get a good VPS at minimum US$20-35 per month. I am not sure how much you are paying for your current shared hosting, but if US$25 above is not a problem for you, I suggest you get a VPS as you are able to host unlimited domains.

VPS basically works almost like a dedicated server.

You might want to check out on VPS at web hosting related forums. If you Google for web hosting forum, I am sure you will find one.

:D

adamnichols45




msg:1266448
 10:02 am on Apr 12, 2006 (gmt 0)

you are now allowed to post URLS no but you can use sticky mail ;)

jezzer300




msg:1266449
 11:26 am on Apr 12, 2006 (gmt 0)

Hi,

<snip>

[edited by: trillianjedi at 2:57 pm (utc) on April 12, 2006]
[edit reason] No self-promo please, as per TOS [/edit]

henry0




msg:1266450
 11:27 am on Apr 12, 2006 (gmt 0)

I started a while ago a thread on "pseudo-cron"
I cannot find my thread

But do a G for "pseudo-cron"
And look at the solution offered
Too bad I cannot find the thread; I think some related problems were discussed

Tastatura




msg:1266451
 2:01 pm on Apr 12, 2006 (gmt 0)

Can you try something like this:
Set up a page on your server that is not linked to any other page (maybe even pwd protect it, etc.). That page should call a PHP (or other language of your choice) script which performs ‘cron job’ tasks that you want to.
Now, on your home computer, you can set up a scheduler, or cron job, to call that page at predetermined times.
I haven’t tried this ‘poor man cron job’ approach; it’s just an idea. It has it flaws – in order to work you must be connected to the net at certain times (not an issue if you have DSL, etc.), it won’t work if you have a power outage at your home, etc….
HTH

smagdy




msg:1266452
 2:10 pm on Apr 12, 2006 (gmt 0)

Thanks,

My host have VDS and its for good price, but there are distributions that ive to choose from and i dono anything about that!

So what is the difference between all these:

Debian 3.0(Woddy)
Debian 3.1(Sarge)
RedHat Fedora Core 2
RedHat Fedora Core 3
Mandriva LE 2005 (Mandrake)
RedHat 9.0

Thanks

henry0




msg:1266453
 2:30 pm on Apr 12, 2006 (gmt 0)

I like Red Hat but this is not RH entreprise

Fedora is also very solid

your next question to your ISP ought to be abour control panel

for ex: RH and Fedora are often presented with dif control panel

Unless your ISP has implemented their own

with the answer ask for a manual on line
review the manual
search about the CP on line and make an educated choice

kkobashi




msg:1266454
 5:11 pm on Apr 12, 2006 (gmt 0)

Shared hosts do allow cron jobs but the granularity is widened for the frequency of the job. Usually, they set it to no more than 1 job per X hours.

Google for free cron job websites that initiate the job to call on a PHP script on your website. I know they exist out there because I used it before - can't remember the name off hand.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved