using symlinks as a doc-root is not atomic on apache per default #2396
Unanswered
staabm
asked this question in
Help needed
Replies: 1 comment 5 replies
-
I usually use nginx and making sure it properly configured. I use real path for this. I think it will be really good to document such thing in case in Apache. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
when using deployer on a apache webserver (and therefore a symlinked docroot) is not atomic per default.
this means that requests might use release A when started but while apache is serving the request it might change to release B, because the symlink changed by a concurrently running deployment.
we see issues like Class-Not-Found, Class-Already-Declared, Cannot-redeclare-function because of this.
I found https://github.com/etsy/mod_realdoc on github which seems to patch this apache caveat.
see also this article from Rasmus Lerdorf on etsy: https://codeascraft.com/2013/07/01/atomic-deploys-at-etsy/
I don't know whether this also affects other webservers.
Is this something every knows and uses because this problem get not reported for this project more often?
Should it be documented somewhere, in case its 'required' (to prevent race conditions)?
Beta Was this translation helpful? Give feedback.
All reactions