-
-
Notifications
You must be signed in to change notification settings - Fork 62
let apache write to its directories #147
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR resolves Apache startup failures by ensuring Apache has write permissions to its required runtime directories. The change creates and sets proper ownership for Apache's log, cache, and run directories.
- Creates necessary Apache runtime directories (
/var/log/apache2
,/var/cache/apache2
,/run/apache2
) - Sets proper ownership to
apache:apache
for these directories to allow write access
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Forgot to mention, I use bind mounts for the following directories and set them locally to the in container apache user 100:101. so at starting up those files can be modified by apache. There has to be some better solution to do this. If I have time for it, I will take a look at this more close. First, I got to set it up for my sister :D which was prio 1 :)
|
@lastsamurai26 do we have docs for something like this? |
to change the apache Settings? not yet |
I mean do we have a place for it? I think we have a community contributed guide of some form. We may want to make a note of this somewhere. |
Maybe here ? but Matt actually worked more on the doc, so I don't know what else he changed. So docker latest is accurate. |
Matt is managing docs, I don't think we have docker worked in there yet. Maybe just mention it in the readme. I remember someone making a docker compose file possibly with some documentation, not sure if that was passed on to us or if this is maintained externally, but I can't seem to find that one. |
https://docs.linkstack.org/docker/setup/ here we have something |
apache tries to write to those directories on startup and fails to do so.