Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up cron job in Plesk #934

Closed
djcroman opened this issue Dec 15, 2020 · 7 comments
Closed

Set up cron job in Plesk #934

djcroman opened this issue Dec 15, 2020 · 7 comments

Comments

@djcroman
Copy link

djcroman commented Dec 15, 2020

I install Freescout on a new Server with Plesk
Everything is fine so far.
However, I can not manage a cron for the email retrieval.
Manual retrieval works without any problem.

I have already tried both variants.

php /var/www/vhosts/mydomain/httpdocs/artisan schedule:run >> /dev/null 2>&1
/opt/plesk/php/7.4/bin/php /var/www/vhosts/mydomain/httpdocs/artisan schedule:run >> /dev/null 2>&1

I also do not get an error message
anyone an idea?
thanks

@fvdm
Copy link
Contributor

fvdm commented Dec 15, 2020

In Plesk it is best to setup scheduled tasks within the domain section where you installed FreeScout. There you choose PHP 7.4 (or at least the same you use for the FreeScout web interface). Set the first field to httpdocs/artisan and the second to schedule:run.

Then click Run Now and see if you get any errors. If not, then save the cron job.

@djcroman
Copy link
Author

schedule:run

You Great. Thank you so much. Now the Cron runs without any Problems

@freescout-helpdesk freescout-helpdesk changed the title PHP Problem Set up cron job in Plesk Dec 17, 2020
@snapptm
Copy link

snapptm commented Oct 8, 2021

I am also needing help with this.. This is my first Plesk server, setup in a test environment. I have installed Freescout, and cannot get a cron setup to fetch emails.

this is what i Have. I copied this from the System status page . What should my cron actually look like ? any help will be greatly appreciated

/var/www/vhosts/mydomain/httpdocs/freescout1/artisan schedule:run >> /dev/null 2>&1

@fvdm
Copy link
Contributor

fvdm commented Oct 8, 2021

@snapptm See my comment earlier: #934 (comment)

In your case set the first field to httpdocs/freescout1/artisan and the second field to schedule:run

Do not include the output redirection >> /dev/null 2>&1.

@snapptm
Copy link

snapptm commented Oct 8, 2021

Okay thank you for replying so fast.

So just want to make sure i have this right
I will create a cron task. Run the command. httpdocs/freescout1/artisan/schedule:run ?
Is that correct or did I mess this up ?

@fvdm
Copy link
Contributor

fvdm commented Oct 8, 2021

@snapptm And choose the right PHP version. This will make sure the command runs inside the domain's PHP environment.

@freescout-helpdesk
Copy link
Owner

144033340-39f1c5be-e853-4717-a9de-466db4dcc575

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants