Skip to content

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

Closed
@antonioribeiro

Description

@antonioribeiro

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions