Errors when trying to add a Cron job

Username (e.g. epiz_XXX) or Website URL

epiz_28367791 http://coolsurvival.freecluster.eu/

Error Message

Says Forbidden, then I change the URL to index.php and it says this

image image

Other Information

I need to add a cron job because the software on my website needs it (And EasyCron says upgrade to use the domain)

Your site seam to work fine for me:

Are you getting this error immediately after clicking the “Chron Job” section in the control panel?

Thanks!

It is working correctly, but in the Admin CP it says that it only runs tasks when people come to the website (which not many do) so the tasks are getting backlogged so it says for me to use cron and when I try to add a cron job in the InfinityFree CPanel it says that.

Was your account just created or are there other errors in the control panel? Maybe try another browser?

Thanks!

What is the URL you are using in the cron job creation?

The account was created a few weeks ago (or 1 month ago) and there aren’t any other errors. I think it’s a problem with CPanel permissions, but now I can’t add a cron job (and it says that if tasks keep getting backlogged the site will destroy itself.)

image
It redirects to that when adding cron job
And since it says 403 forbidden I make it image
and it says

The create a cron job, you have to use the URL to the script that will be executed by the cron.
Something like http://coolsurvival.freecluster.eu/do-something.php.

It has to use your domain name. Not the vpanel domain name.

Oh wait… it said to use this url for the cron job:
http://coolsurvival.freecluster.eu/usr/php70/bin/php -d memory_limit=-1 -d max_execution_time=0 /home/vol3_6/epizy.com/epiz_28367791/htdocs/applications/core/interface/task/task.php b6626f94d49ff324906562f6b5213e58

Can you confirm if the tasks were already processed?

I used this URL:
http://coolsurvival.freecluster.eu/applications/core/interface/task/task.php
But I’m not sure if it’s the right one.

It couldn’t even make the task

Yes, but the cron only automates tasks.
You can execute them manually by loading the right URL in your browser.
The thing is, we first must find out what is the URL for the task.

I just loaded this url http://coolsurvival.freecluster.eu/applications/core/interface/task/task.php in my browser.
Is there a way for you to confirm that the tasks where processed?

It said that you should enter that in the cron thing

I don’t know, it doesn’t say but I’m going to see if there is logs

Yes, I know. But first I want to make sure that you are going to create the cron job with the correct URL.

I am creating the job with this:
image


(also here is a video of what happens)
when it says forbidden and my mouse goes to the top I am making the URL from indexpl.php to index.php

That will never work because, if you look closely at the field where you are pasting the file path, it begins with http://coolsurvival.freecluster.eu/.

What you are doing is telling the cron that you want to execute this URL:
http://coolsurvival.freecluster.eu/usr/php70/bin/php 1 -d memory_limit=-1 -d max_execution_time=0 /home/vol3_6/epizy.com/epiz_28367791/htdocs/applications/core/interface/task/task.php b6626f94d49ff324906562f6b5213e58
But this is not a valid URL.

What software are you using?

Invision Community 4.5.4.2

The problem here is that you can’t run the whole command that they show on InfinityFree’s hosting. You must have a URL.

To run the command that Invision Community is telling you to run, you need SSH access (command line access) and free hosting doesn’t provide SSH access.

The alternative would be to find the correct URL for the task and use that URL without the arguments that they’re recommending. But first you need to find the correct URL.

The best way is to head to their (Invision Community) forums and ask them what URL you can use to create a cron since you don’t have SSH acccess to your hosting account.

Well… there is another alternative. You can also migrate to premium hosting.

1 Like

Okay, I’ll see