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

Daily log file inaccessible by web when created by cli and vice-versa #39

Open
alexmerlin opened this issue Jul 25, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@alexmerlin
Copy link
Member

alexmerlin commented Jul 25, 2024

Error:

Fatal error: Uncaught ErrorException: fopen(/var/www/admin.dotkernel.localhost/html/config/autoload/../../log/error-log-2024-07-25.log): Failed to open stream: Permission denied in /var/www/admin.dotkernel.localhost/html/vendor/laminas/laminas-log/src/Writer/Stream.php:105

This issue affects all projects: API, Frontend and Admin


Log file properties when created by a web request:

-rw-r--r-- 1 apache apache 0 Jul 25 11:39 error-log-2024-07-25.log

Log file properties when created by a PHP command:

-rw-r--r-- 1 merlin merlin 0 Jul 25 11:41 error-log-2024-07-25.log


Checking groups for the user apache:

groups apache

Output:

apache : apache


Checking groups for my own user merlin:

groups merlin

Output:

merlin : merlin adm wheel cdrom apache docker

@alexmerlin alexmerlin added the bug Something isn't working label Jul 25, 2024
@arhimede arhimede self-assigned this Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants