Cronjob Error

Hi,

cd /var/www/html/googleplaystore-root-folder && php artisan schedule:run >> /dev/null 2>&1

This is the code developer gave me to add to the cronjob.

and the location of my script is /home/vvkpexpj/public_html/example.com

Do i need to make any changes to the cronjob code he given.? i had copy pasted the code same as what he gave, but its not working. i m on a shared hosting

It should just be the absolute path to the file itself.

location of my script is /home/vvkpexpj/public_html/example.com

in this case how the cron code should be.?

He’s using Laravel for the automation,

https://laravel.com/docs/5.8/scheduling

What is the error in the log file?

cd /public_html/example.com && php artisan schedule:run >> /dev/null 2>&1

is this correct for a addon domain.?

I’ll translate it for you:

change the directory to this

When you are there run this command:

Don’t do anything with the output:

So if it is for a subdomain, as long as Laravel is running for that site, and it is in the directory listed you are fine.

However, check the logs to see what caused the error.

Sponsor our Newsletter | Privacy Policy | Terms of Service