Support the ongoing development of →
Last updated 1 year ago.

Sounds like a permissions issue. When you set up your cron job, what user executes the task?

If you set up the cron as root for example, the root user would create a new laravel.log owned by root.root. Then, when you hit your site it's running as the apache user, and that user wouldn't be able to write to laravel.log due do the permissions.


Thanks @joetito1, that make sense! I'll test it and let you know!


Confirmed! that was the issue. Making some research I found this:

So I applied this awesome and very clean solution:

Thanks @joetito1 for your time and for bringing me some light into this!


Sign in to participate in this thread!


Your banner here too?

hfuccillo hfuccillo Joined 20 Oct 2015


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.