cronjob not working?

Awd

Verified User
Joined
Aug 9, 2015
Messages
316
Hello,

I need a cronjob to run, but I can´t get it work. What is wrong?

*/10 * * * * wget -q -O /dev/null https://domain.com/delete-server-data-1hour

I tried also
cd /home/user/domains/domain.com/public_html/cron/; /usr/local/bin/curl -s delete-server-data-1hour
and
/usr/bin/curl -s -/home/user/domains/domain.com/public_html/cron/ https://domain.com/delete-server-data-1hour >/dev/null

Anyone has suggestions?
Kind regards, Fred
 
If you have root on this server, can you confirm crond is actually running?

Code:
ps aux | grep crond

If it is, set a MAILTO environment variable at the top of your cronfile to email you output. Maybe there will be a hint there.

Code:
MAILTO="[email protected]"
*/10 * * * * wget -q -O /dev/null https://domain.com/delete-server-data-1hour
 
Hi Adam,
Thank you for taking time to take a look. I don´t have root access.

With mail I get this message:
--2017-07-20 12:50:01-- https://www.domain.com/delete-server-data-1hour
Resolving www.domain.com (www.domain.com)... 37.141.205.5
Connecting to www.domain.com (www.domain.com)|37.141.205.5|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26 [text/html]
Saving to: ‘/dev/null’

0K 100% 5.43M=0s

2017-07-20 12:50:01 (5.43 MB/s) - ‘/dev/null’ saved [26/26]

I think it work? or not?

With another cronjob I get this message:
Cannot load the ionCube PHP Loader - extension already loaded

I think this is something wrong on the (shared) server?

Kind regards, Fred
 
The first one seems to be working fine.

The second one is also being executed, so no cron issue there. It's php who is trying to load ioncube twice.

Is this second cron job also with wget, or maybe with /usr/local/bin/php for example?
 
The second one is like this
cd /home/user/domains/domain.com/public_html/subfolder/cron/; /usr/local/bin/php -f script.php

or can it be done easier? I think the ioncube load twice is something what have to be solved by the server provider (shared server) or not?

Thank you!
 
Like this it would probably be needed to be fixed by the server admin.

However since the script.php is a subdir of public_html, you could also access it through web and make it a wget one like the first one.

It is possible that that one is working, as it may use another php.ini which is the file responsible for including ioncube.
 
for some reason I can´t get it work with wget. I will contact the server admin regarding the ioncube loader.
Thank you for your time and advice!
 
It might be wise to also contact the server admin regarding wget.
It's possible it's disabled for users/customers due to security reasons. We don't allow users to make use of wget either.
 
Back
Top