Guest Posted October 21, 2011 Share Posted October 21, 2011 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? Link to comment Share on other sites More sharing options...
Guest Posted October 22, 2011 Share Posted October 22, 2011 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 Link to comment Share on other sites More sharing options...
cchhaass Posted November 17, 2011 Share Posted November 17, 2011 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 Link to comment Share on other sites More sharing options...
Guest Posted November 17, 2011 Share Posted November 17, 2011 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 Link to comment Share on other sites More sharing options...
cchhaass Posted November 18, 2011 Share Posted November 18, 2011 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!!! Link to comment Share on other sites More sharing options...
Carisma Posted January 13, 2012 Share Posted January 13, 2012 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? Link to comment Share on other sites More sharing options...
Guest Posted January 13, 2012 Share Posted January 13, 2012 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? Link to comment Share on other sites More sharing options...
Carisma Posted January 13, 2012 Share Posted January 13, 2012 maybe i've solved the problem! Link to comment Share on other sites More sharing options...
Guest Posted January 13, 2012 Share Posted January 13, 2012 maybe i've solved the problem! Well done - why not share your solve for others to benefit Link to comment Share on other sites More sharing options...
Carisma Posted January 16, 2012 Share Posted January 16, 2012 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! Link to comment Share on other sites More sharing options...
Recommended Posts