You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/cronjobs.md
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,3 +19,33 @@ runtime:
19
19
```
20
20
21
21
A description of the crontab syntax that is required to define schedules can be found [here](https://www.adminschoice.com/crontab-quick-reference).
22
+
23
+
# Example of a Cron Job for Running a PHP Script
24
+
25
+
To run a PHP command using a specific version, you need to provide the absolute path to the desired PHP version. Below is a list of the available versions:
26
+
27
+
-`/usr/bin/php4.4-cli`
28
+
-`/usr/bin/php5.2-cli`
29
+
-`/usr/bin/php5.4-cli`
30
+
-`/usr/bin/php5.5-cli`
31
+
-`/usr/bin/php5.6-cli`
32
+
-`/usr/bin/php7.0-cli`
33
+
-`/usr/bin/php7.1-cli`
34
+
-`/usr/bin/php7.2-cli`
35
+
-`/usr/bin/php7.3-cli`
36
+
-`/usr/bin/php7.4-cli`
37
+
-`/usr/bin/php8.0-cli`
38
+
-`/usr/bin/php8.1-cli`
39
+
-`/usr/bin/php8.2-cli`
40
+
-`/usr/bin/php8.3-cli`
41
+
-`/usr/bin/php8.4-cli`
42
+
43
+
Below is an example configuration of a cron job that uses the `/usr/bin/php8.3-cli` version to execute a script:
With this configuration, the cron job will run every minute using the specified PHP version to execute the script located at $HOME/htdocs/"path/to/your/script".
0 commit comments