Well, my system has been working for over 2 yeas without any problem till I had to move it from a C-panel based system to another system using HSPHERE. What I found out is that the way the CRON job is setup does not work. I was told to use WGET which I have no clue how to set it up. This is what the tech support wrote me:
Cron does not work by calling php files. The way the other server was set up was not correct or was not using cron. PHP files must be processed through the php binary. You can either call the php binary (which will require a good amount of work to make it work properly) or simply use wget.
man wget will give You the switches and options. "wget" simply calls a file just like a browser does. So You would change Your line to something like this:
------------------------------------------------------------------------
wget http://domain.net/support/api/cron.php(http://domain.net/support/api/cron.php)
The only thing You might need is a few switches after the wget command to make it do or behave exactly how You desire.
Comparing hsphere to cpanel is like saying "this works on windows why can't I just install it on my mac." they're nothing alike. Cpanel operates completely differently. The cron option there might not actually be a cron option, it may be a completely different service that manages tasks. (I don't know how their configuration was set up.) Cron jobs are O.S. level jobs that work exactly how a command line works at the prompt. If You called a php file simply by calling it at a prompt nothing would happen. At a command line You would have to call the php interpreter binary and tell it to process that file. Detailed instructions are here:
http://www.php.net/manual/en/features.commandline.usage.php(http://www.php.net/manual/en/features.commandline.usage.php)
You'll notice the path must be correct in calling php, that it is O.S. specific and that it requires quite a bit more effort to configure. Cron jobs also run "jailed" as Your user with only limited access to commands, binaries and permissions. I say it's usually the "hard" way to use cron as it's a bit more work to get the input and output desired out of php using the cli.
----------------------------------------
Does anyone knows how to use the wget properly to get this going?
Thanks