Support

Akeeba Backup for Joomla!

#12635 My first cron job

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
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

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Tuesday, 19 June 2012 01:33 CDT

standib1
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.4
PHP version: (unknown)
MySQL version: (unknown)
Host: Godaddy
Akeeba Backup version: 3.5.1

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:
I am trying to automate my backups using a cron job. I am having difficulty determining if the command line even runs. I don't get an error message when the cron job runs but I do get an email. When I go to administer backups, there is no entry at all.
My command line is (per Godaddy's instructions):
/web/cgi-bin/php5 "$HOME/cli/akeeba-backup.php" -profile=4

The email I get when the job is run is:
From: Cron Daemon [[email protected]]

Subject: Cron /web/cgi-bin/php5 "$HOME/html/cli/akeeba-backup.php" -profile=4

Message:Content-type: text/html

I'm not sure what all this means but I used to get a file not found error. At least the cron job now sees the file. :-)

nicholas
Akeeba Staff
Manager
Your are using the PHP CGI (Common Gateway Interface) binary instead of the PHP CLI (Command Line Interface) binary. The CGI binary is not supported by our CLI scripts. Please ask your host for the correct location of the PHP CLI binary and replace your CRON command line's /web/cgi-bin/php5 with the path they give you. If they tell you that the CLI and CGI binaries are the same, ask to speak to a level 2 technician (level 1 technicians often can't tell their noses from their... you get the idea).

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!

standib1
Thanks Nicholas. I called Godaddy. They told me the only way I could use the CLI binary was to enable SSH. There are warnings all over that telling me that the server files and databases would be moved to another server and that different applications might not work after that until the database connection information was changed. I don't think I am up for that. I read somewhere that I can run cron jobs through third party services. Is that my only other option or is there a way to use the CGI binary?

nicholas
Akeeba Staff
Manager
I will just say one phrase: GoDaddy is trying to screw you, big time!

No, you DO NOT need to enable SSH to use the CLI binary in a CRON job! For crying out loud, are GoDaddy's support people so ignorant?! As far as the operating system is concerned, it makes no difference to the CRON service if you give it the path to the PHP CGI binary, PHP CLI binary, or any other binary; it will run it just the same. Even an 8 year old with minimal Linux experience can tell you as much. All you need is the uneducated imbecile who answered your support request to give you the path to the PHP CLI binary, so that you don't have to look at a crystal ball to guess it. In other words, your host is trying to screw you. Do yourself a favour, don't get fooled into buying a much more expensive hosting package that you obviously don't need. And since we're talking about GoDaddy, the place where customer service and performance come to die, do yourself a huge favour and buy 10x faster, 100x better supported hosting service for the same money. Where? Oh, several places. Like CloudAccess.net, SiteGround, iRedHost or Rochen (I've used all of the above hosts myself, obviously there are many more good hosts out there).

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!

standib1
Who are you using at the moment?

nicholas
Akeeba Staff
Manager
I am using Rochen, but I am a bad example to begin with. I am using the expensive MVS package. You most likely need shared hosting. I don't recommend Rochen's shared hosting. I'd rather tell you to try SiteGround instead.

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!

standib1
I called Godaddy back and pushed harder. They insist that for their shared hosting accounts I either have to use CGI or run the command line through SSH. So...
For now I guess I will be looking for a new host.
If you want, go ahead and close this ticket. When I move a site to a new host, I will try to set up a cron job there.
Thanks for your help and advise.

Bob

nicholas
Akeeba Staff
Manager
Ah, GoDaddy... In the developer community we refer to them as NoDaddy. I guess you can imagine why. *sigh*

You're welcome and don't hesitate to post back once you move hosts!

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!

standib1
Hi Nicholas,
Here is my latest update. It turns out that Godaddy is pretty competitive but SiteGround looks pretty good too (for about $4.00 more a month)
As far as running a cron job, I created an account with webcron.com and I'm running backups through the front end and storing the files with an Amazon S3 account. It SEEMS to be working but I'm wondering if I am missing something. Files look good on Amazon. What do you think?

nicholas
Akeeba Staff
Manager
If you get no warnings or errors during backup, it is 99% possible that you have a perfectly working backup. However, my mantra is "an untested backup is as good as no backup". It's a good idea testing that backup. You can do that with a local server environment, e.g. using XAMPP (cross-platform), Zend Server CE (cross-platform), MAMP (Mac OS X) or WAMPServer (Windows). Just download all parts of the backup archive and restore them on your local server. That's a great exercise, too, as it will familiarise you with the restoration procedure.

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!