Support the ongoing development of Laravel.io →
Configuration
Last updated 2 years ago.
0

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.

0

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

0

Confirmed! that was the issue. Making some research I found this: http://stackoverflow.com/questions/27674597/laravel-daily-log-created-with-wrong-permissions

So I applied this awesome and very clean solution: http://laravel.io/forum/06-02-2015-putting-os-username-into-log-file-name

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

hfuccillo hfuccillo Joined 20 Oct 2015

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.