# Set pilots on leave

**URL:** <https://forum.phpvms.net/t/set-pilots-on-leave/14049>\
**Category:** Help and Support\
**Created:** [October 5, 2024, 7:33pm UTC](https://forum.phpvms.net/t/set-pilots-on-leave/14049 "2024-10-05T19:33:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Imanol](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/i/f4b2a3/32.png) [@Imanol](https://forum.phpvms.net/u/Imanol)\
**Post date:** [October 5, 2024, 7:33pm UTC](https://forum.phpvms.net/t/set-pilots-on-leave/14049/1 "2024-10-05T19:33:06Z")

</div>

Hello,

&nbsp;

I have already set a cron job in my cPanel and configured 60 days as period of inactivity. However, pilot states are not changing. This is what I have in settings:

&nbsp;

> Quote
> 
> /usr/local/bin/ea-php82 -q /home2/skyjetv3/phpvms/artisan schedule:run

&nbsp;

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ProAvia](https://forum.phpvms.net/user_avatar/forum.phpvms.net/proavia/32/135_2.png) [@ProAvia](https://forum.phpvms.net/u/ProAvia)\
**Post date:** [October 5, 2024, 9:18pm UTC](https://forum.phpvms.net/t/set-pilots-on-leave/14049/2 "2024-10-05T21:18:01Z")

</div>

Are you using the cron thru your hosting or are you using the web cron?

&nbsp;

[https://docs.phpvms.net/installation/cron](https://docs.phpvms.net/installation/cron)

---

<div class="post-metadata">

**Author:** ![Imanol](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/i/f4b2a3/32.png) [@Imanol](https://forum.phpvms.net/u/Imanol)\
**Post date:** [October 5, 2024, 10:42pm UTC](https://forum.phpvms.net/t/set-pilots-on-leave/14049/3 "2024-10-05T22:42:57Z")

</div>

Hi &nbsp;I added that line in Cronjobs. I don’t know how to set the web cron.

---

<div class="post-metadata">

**Author:** ![ProAvia](https://forum.phpvms.net/user_avatar/forum.phpvms.net/proavia/32/135_2.png) [@ProAvia](https://forum.phpvms.net/u/ProAvia)\
**Post date:** [October 6, 2024, 3:19am UTC](https://forum.phpvms.net/t/set-pilots-on-leave/14049/4 "2024-10-06T03:19:02Z")

</div>

If you go to admin, maintenance - what info is shown under CRON?

&nbsp;

For your hosting, what access panel is used? cPanel, etc.

---

<div class="post-metadata">

**Author:** ![Imanol](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/i/f4b2a3/32.png) [@Imanol](https://forum.phpvms.net/u/Imanol)\
**Post date:** [October 6, 2024, 3:39am UTC](https://forum.phpvms.net/t/set-pilots-on-leave/14049/5 "2024-10-06T03:39:15Z")

</div>

&nbsp;this is what I have

&nbsp;

**PHPVMS 7**

&nbsp;

![img001.png.b92caea5fc53e471bdd88a9d49191d63.png](https://phpvms-forum.nyc3.digitaloceanspaces.com/original/2X/4/4f3d903d97b65f37c737f362a3368399091e0f81.png)

&nbsp;

&nbsp;

**cPanel**

&nbsp;

![img002.png.644c0862eafaf2f4982e60bf01d298bc.png](https://phpvms-forum.nyc3.digitaloceanspaces.com/original/2X/b/b5e8ff14fb903128938aeed834dc15b39427d520.png)

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![DisposableHero](https://forum.phpvms.net/user_avatar/forum.phpvms.net/disposablehero/32/1457_2.png) [@DisposableHero](https://forum.phpvms.net/u/DisposableHero)\
**Post date:** [October 6, 2024, 1:13pm UTC](https://forum.phpvms.net/t/set-pilots-on-leave/14049/6 "2024-10-06T13:13:51Z")

</div>

Best way to understand this is checking the cron log &nbsp;, they are placed alongside with your laravel logs under storage/logs folder.

&nbsp;

If it is not there, or there but nothing in it are clear signs of cron problems (95% hosting limitations, 5% user error / server misconfiguration)

&nbsp;

And if it is running properly, you may need to wait until UTC midnight, (nightly cron) for user checks (active / leave switch)

&nbsp;

&nbsp;

Good luck

---

<div class="post-metadata">

**Author:** ![ProAvia](https://forum.phpvms.net/user_avatar/forum.phpvms.net/proavia/32/135_2.png) [@ProAvia](https://forum.phpvms.net/u/ProAvia)\
**Post date:** [October 6, 2024, 7:24pm UTC](https://forum.phpvms.net/t/set-pilots-on-leave/14049/7 "2024-10-06T19:24:55Z")

</div>

For mine, I just entered what is under CRON - starting with “/opt…” - into the area you show at the bottom of your post.&nbsp;

And make sure Web Cron is disabled.
