-
Notifications
You must be signed in to change notification settings - Fork 509
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
Different path to PHP not respected in crontab > scheduled tasks. #2196
Comments
Good question. We don't know yet. |
It looks like there is no some good way. The only way is to hardcode the path to your PHP like this: https://stackoverflow.com/a/45962045 |
Closed as completed, hm? You guys are quick! ;-) Well, I concur this is not really a FreeScout issue, but rather a Symfony issue. This Stackoverflow question lead me onto the right path. Obviously PhpExecutableFinder has trouble identifying the current PHP process in PhpExecutableFinder.php:57 when called from a crontab environment. However, defining Unfortunately, defining So I crudely fixed the problem by defining
You might want to include this approach (or something more elegant) in your documentation to help all those FreeScout users on shared/hosted webspace. |
Thanks for sharing the solution. Added to https://github.com/freescout-helpdesk/freescout/wiki/Installation-Guide |
You're welcome, I have to thank you for this awesome software!! One tiny remark regarding the Installation Guide: |
Hi,
on our web hoster we need to use a different path to PHP to select the correct PHP version. Instead of
/usr/bin/php
we need to use/usr/bin/php8.0
.No big deal, this is covered in the installation guide at https://github.com/freescout-helpdesk/freescout/wiki/Installation-Guide#9-configuring-cron-jobs.
However, setting this path to PHP in the crontab does not change the path to PHP of the scheduled tasks:
This is the crontab with the desired path to PHP:
When I run this command manually, it reveals that the scheduled tasks use the default path to PHP
'/usr/bin/php'
:How do I make the scheduled tasks also use our desired path to PHP?
The text was updated successfully, but these errors were encountered: