Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Permission denied" on Log via CLI and Apache Deamon might be frequent #46

Closed
antonioribeiro opened this issue Jan 15, 2013 · 2 comments

Comments

@antonioribeiro
Copy link
Contributor

If you are running your php cli as a user different than apache, you'll get frequent permission denied errors and lately this was driving me crazy every time I used migration:rollback. I was having to delete migrations rows and/or drop tables to correct the migrations state.

I just added in (global.php) the php SAPI name to solve it in my end:

Log::useDailyFiles(__DIR__.'/../storage/logs/log-'.php_sapi_name().'.txt');

But it could be a better way to do that with Monolog...

@arvidbjorkstrom
Copy link
Contributor

+1
Having to set reset permissions on the logs folder has really annoyed me a lot..

@taylorotwell
Copy link
Member

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants