Support

UNiTE, Remote CLI, eXtract Wizard

#3633 Kickstart.php & Cron

Posted in ‘UNiTE and Remote CLI’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
Tool
UNiTE
Tool version
n/a

Latest post by nicholas on Tuesday, 11 May 2010 22:28 CDT

user9856
Hello there, I am trying to launch the kickstart.php from a cron (or a linux shell) and I am having trouble in finding the right way to do it.

At first I tried php kickstart.php and this of course didn't work, then I tried wget on the url and I indeed retrieved the html page which says "auto mode enabled" as if I just opened the page in a web browser.
However after this I am not sure that it is doing anything (in fact I doubt it is!).

Perhaps this has to do with the fact that I specified "ajax" mode in the jpi4automation.ini...?

Is there anyway to run kickstart from a cron job?

Thanks.

dlb
OK, I just gotta ask, why are you trying to run kickstart from a CRON job? :)

I guess in theory this is possible. I would start by calling kickstart in the normal way, with the automation file in place. That establishes that your automation file is right. Once you get to that point, you can call it again from the CRON job.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user9856
Thanks for your reply.
Well, I'm aiming to automate the entire backup-restore process and this is the last obstacle in my path. I have already opened the kickstart.php in a browser and it starts fine on "auto mode", this tells me that the settings are ok.

Once you get to that point, you can call it again from the CRON job.

And this brings us back to my original question... HOW do I call it from the cron job? ;) I am guessing that you mean by wget? If so, will calling the kickstart.php once and then waiting be sufficient?

dlb
I'll spare you my guesses and flag this for Nicholas. :)


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user9856
UPDATE: I tried calling the address of kickstart.php with wget.... I waited but nothing happened.
Hopefully Nicholas has a way to do it that doesn't involve hacking the kickstart.php :)

nicholas
Akeeba Staff
Manager
Kickstart either runs on AJAX or Javascript Redirects mode. The common thing here being "Javascript", ergo it needs a browser.

If you are a subscriber to the Professional release, there is a restore.php script in the administrator area. This is a versatile archive extraction PHP script which can be run in unattended mode with a simple PHP loop. Even so, what is the point? Kickstart and restore.php will simply extract the archive. ABI (the embedded installer) only runs from a browser.

I have developed a CRON mode PHP application for unattended deployments of multiple websites. It uses XML files to specify which would be extracted where and how. I guess, if you're interested, it is pretty much what you're looking for. However, unlike most of my other software, this is not free of charge.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!