-
Notifications
You must be signed in to change notification settings - Fork 456
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
fpm-alpine & volume (-v) leads to empty /var/www/html (Apache2) #395
Comments
Hi! It's Line 106 in d1f327e
I am currently thinking that there is no need to volume mount, and after that maybe it could be a local path issue sending the request to fpm
Okay I get it, it works but no files are recognized by apache2 as tbey do not exist on the host file system Hmm, maybe run the apache2 version and proxy the http traffic to it? |
Can you link the stackoverflow.com post? |
Stackoverflow post is here: https://stackoverflow.com/questions/75268068/problem-with-static-files-using-phpmyadminfpm-alpine-behind-apache2 Issue #362 seems to be the same issue. I use plain docker, so I don't have a docker compose file and Apache2 doesn't run within docker, but directly on the host system. My understanding at this point is, I think the steps to reproduce the problem are simple, start the container with a mount to
And then check the
Run the container without mount (-v) and all the files are there:
e.g., I also use postfixadmin which is small but similar in the structure: The Dockerfile seems to extract everything to Where the This is what
I need access to the resource files, since fpm couldn't serve these files directly, this would result in following errors for any non php files:
|
Sorry to raise this issue, but I have a problem using the fpm-alpine container with Apache2 installed on the host machine. I have the following line in my Apache2 to redirect *.php requests to fpm:
This works well. The real problem are the resource files (CSS, JS), I usually use a volume to make them accessible through the host file system like this:
And then I would add this line in Apache2 to serve the resource files through the container:
But when I mount a volume like this, the
/var/www/html
directory in the container is empty. There is also no/usr/src/phpmyadmin
directory, only the/usr/src/php.tar.xz
file exists.This approach worked for me for other containers based on php-fpm-alpine, I don't know what is special about phpMyAdmin that it doesn't work here. So can anyone help me on howto setup this correctly?
And yes, I asked this question on Stackoverflow but I didn't get any response there.
The text was updated successfully, but these errors were encountered: