mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
Cron Job PHP version issue #495
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @muhci on 9/14/2022
CloudPanel version(s) affected
2.0.4
Description
Hi there!
PHP version defined in cron job command (given as stated in official docs) is ignored and if the app is not compatible the upper version of PHP, it's not working:
php7.4 /home/USER/.../script.php=> this happens /usr/bin/phpHowever if I define the command as
/usr/bin/php7.4 /home/USER/.../script.phpit's working.
I figured out this by getting MAIL response to the user's inbox in the /var/mail directory.
You can see the mail output attached.
P.S.: I've encountered the problem with two servers clean installed.
How to reproduce
Possible Solution
The solution could be to correct the guiding placeholder in the panel cron job example and the one in documentation.
Also for user experience I guess it's best to check and add the necessary path to the command (if not pre-defined by the user)
In stackoverflow some guy stated that "... based on its path ..."
I'm not a linux expert. Just solved the problem by trying and then saw that comment...
Thank you for your all efforts.
Additional Context