Sadržaj
Crontabs - OS - Ubuntu 22
export VISUAL=nano crontab -e
Permissions and rights
chmod -R o+w /home/fitness/central.mellon-fitness.com/storage/ chmod -R o+w /home/fitness/central.mellon-fitness.com/bootstrap/ chmod -R o+w /home/fitness/central.mellon-fitness.com/bootstrap/cache/
sudo chmod -R 775 storage sudo chmod -R ugo+rw storage
sudo chmod -R 777 storage
Laravel Artisan command cron test
php artisan make:command TestCron --command=test:cron php artisan tinker Mail::send('emails.MarijanTest', [], function ($message) { $message->to('mkopcic@gmail.com')->subject('this works!'); });
LARAVEL NEW CRON JOBS
php artisan make:command ClanDolazakCiscenje --command=clan:dolazak_ciscenje php artisan make:command NotifikacijeCiscenje --command=clan:notifikacije_ciscenje
New cron jobs php 8.1
php = /usr/bin/php8.1
-
-
-
-
- /usr/bin/php8.1 /home/fitness-central/public_html/artisan schedule:run 1>> /dev/null 2>&1
-
-
-
-
-
-
-
- cd /home/fitness-central/public_html && php artisan schedule:run >> /dev/null 2>&1
-
-
-
Webmin cron jobs
Single laravel schedule command added /dev/null for empty return
-
-
-
-
- root /usr/bin/php8.1 /home/fitness-central/public_html/artisan schedule:run 1>> /dev/null 2>&1
-
-
-
All Laravel schedule commands
-
-
-
-
- root /usr/bin/php8.1 /home/fitness-central/public_html/artisan schedule:run
-
-
-
Old Cron jobs:
- Cron jobs - Centos 7 - CWP PRO:
-
-
-
-
- /usr/local/bin/php /home/fitness/central.mellon-fitness.com/artisan schedule:run 1>> /dev/null 2>&1
-
-
-
-
-
-
-
- /usr/local/bin/php /home/fitness/central.mellon-fitness.com/artisan schedule:run 1>> /dev/null 2>&1
-
-
-