Skip to content

Conversation

runzhammer
Copy link

apache tries to write to those directories on startup and fails to do so.

@JulianPrieber JulianPrieber requested a review from Copilot August 24, 2025 22:16
Copy link

@Copilot Copilot AI left a 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.

@runzhammer
Copy link
Author

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 :)

    volumes:
      - /docker/linkstack/htdocs:/htdocs
      - /docker/linkstack/etc:/etc
      - /docker/linkstack/var/www/logs:/var/log/apache2

@JulianPrieber
Copy link
Member

@lastsamurai26 do we have docs for something like this?

@lastsamurai26
Copy link
Member

@lastsamurai26 do we have docs for something like this?

to change the apache Settings? not yet

@JulianPrieber
Copy link
Member

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

@lastsamurai26
Copy link
Member

Maybe here ?
https://docs.linkstack.org/faq/

but Matt actually worked more on the doc, so I don't know what else he changed. So docker latest is accurate.

@JulianPrieber
Copy link
Member

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.

@lastsamurai26
Copy link
Member

https://docs.linkstack.org/docker/setup/

here we have something

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

Successfully merging this pull request may close these issues.

3 participants