Path for running a cron job

sunsunshining

Verified User
Joined
Sep 23, 2024
Messages
25
Is this path acceptable to run a cron for a user?
Code:
/usr/local/php83/bin/php myscript.php

If one uses this instead
Code:
php myscript.php

Will it use the php version of that user account or a default php version?
 
Will it use the php version of that user account or a default php version?
In the last case the default php version of the server is used (so the one under php 1 version). See answer below from Ohm J.

First line looks good to me.
 
Last edited:
Back
Top