Jump to content
  • 0
haylau

[SOLVED] Help with CRON needed

Question

Hi

 

I have two modules crontab for prestashop and the backup module from presto changeo

 

I can get neither to work, and think it must be to do with prestashop install. Why?

 

I have created cron and run them manually and they work. The crons for these modules run manually and they work.

 

I set up a separate email cron and that works manually and when configured to run automatically.

 

I put the mail cron in the same folders as the modules and it still runs manually and automatically.

 

But if I change the name to be the same as the ones supplied with the modules so that they trigger the call- nothing

 

So it seems to me that for whatever reason, the prestashop installation is preventing the call being made

 

Hope that all makes sense

 

I am on 1&1 (i know! don;t all shout at me) with ssh access to create the crontab

 

Anyone have any ideas?

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Solved, thanks to Tomer and Saṃdhā

 

If the method given int he module instructions don;t work, then you can use a wget instead

 

instruction example

 

0 0 * * 0 /usr/bin/php -q /homepages/10/xxxxxxxxxxxxxx/htdocs/prestashop/modules/prestashopbackup/cron/dbcron.php secure_key=xxxxxxxxxxxxxxxxxx

 

Alternative method:

 

 

0 0 * * 0 wget -O /dev/null http://www.graphskill.co.uk/prestashop/modules.prestashopbackup/cron/dbcron.php?secure_key=xxxxxxxxxx

 

Making sure you use the ? instead of the space in the original

 

This seems to work just fine

Share this post


Link to post
Share on other sites
  • 0

Hi haylau,

 

I'm in 1and1 and to set a cron I must be on SSH configuration, but is it dificult to set it up in the back pannel????

 

If you could explain step by step will be perfect!!!

 

I must do it for a few modules...

 

Please help!!!

Thank you

 

Carlos

Share this post


Link to post
Share on other sites
  • 0

Carlos

 

Not every 1&1 account can use the ssh configuration. Setting it up was easy. In control panel, jsut click SSH if it is there and follow the simple instructions

 

If you can do that, then there help is actually very good in setting up a cron. It really is worth going through there suggestions first before starting on your own

 

http://faq.oneandone.co.uk/scripting/cron_jobs/index.html

Share this post


Link to post
Share on other sites
  • 0

Thank you for your help!!! I knoe it is not available for all hostings. I must upgrade my hosting plan to be able to do it but I wanted to know before it is was dificult or not. Thanx!!!

Share this post


Link to post
Share on other sites
  • 0

The command

0 0 * * 0 wget -O /dev/nullhttp://www.myaddress.com/prestashop/modules.prestashopbackup/cron/dbcron.php?secure_key=xxxxxxxxxx

doesn't work in my cron job.

 

the simbol " - " causes an error..

 

can u help me?

Share this post


Link to post
Share on other sites
  • 0

The command

0 0 * * 0 wget -O /dev/nullhttp://www.myaddress.com/prestashop/modules.prestashopbackup/cron/dbcron.php?secure_key=xxxxxxxxxx

doesn't work in my cron job.

 

the simbol " - " causes an error..

 

can u help me?

i can;t quite tell, but the - should not have a space after it, and is it a capital "oh" you have there? Also there needs to be a space between Null and http, and I guess you did replace the xxxxxxxx with your own secure key?

Share this post


Link to post
Share on other sites
  • 0

Sure!

 

1) Install Crontab for prestashop. ( by Saṃdhā )

 

2) Go In Database Backup Module ( by Presto Changeo ) and copy the URL of the third method

 

3) Paste the URL

 

( look like this : www.yoursite.com/folder/modules/prestashopbackup/cron/dbcron.php?secure_key=xxxxxxxxxxxx )

 

in the Crontab's job creator. ( Remember to put http:// before the URL )

 

 

Now everything seems work!

Share this post


Link to post
Share on other sites

×