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

phpmyadmin/phpmyadmin:5.1.1-fpm docker image is not configured properly #333

Closed
mmm4m5m opened this issue Jun 7, 2021 · 13 comments
Closed
Assignees
Labels

Comments

@mmm4m5m
Copy link

mmm4m5m commented Jun 7, 2021

Describe the bug

Connection is closed when trying to load the page.

To Reproduce

Follow the installation steps:
https://docs.phpmyadmin.net/en/latest/setup.html#using-docker-compose

Server configuration

docker image: phpmyadmin/phpmyadmin:5.1.1-fpm

Additional context

The apache image works fine: phpmyadmin/phpmyadmin:5.1.1
Fpm image listen on port 9000. Probably on ipv6 (or 127.0.0.1?).
Quick changes in docker-compose and php-frm config files did not help.

@williamdes
Copy link
Member

Hi @mmm4m5m
Could you provide your docker-compose ?

@williamdes williamdes self-assigned this Jun 11, 2021
@williamdes williamdes transferred this issue from phpmyadmin/phpmyadmin Jun 11, 2021
@mmm4m5m
Copy link
Author

mmm4m5m commented Jun 17, 2021

hi @williamdes

Sorry for the late answer. I checked different options with FPM image without success.
Currently I am using this docker-compose with not-FPM image.
It works as expected with different options (for example with network host).

  phpmyadmin:
    image: phpmyadmin/phpmyadmin:5.1.1
    container_name: phpmyadmin-5.1.1
    volumes:
      - /sessions
      - ${PWD}/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php
      - ./phpmyadmin/theme/:/www/themes/theme/
    environment:
      PMA_ARBITRARY: 1
    ports:
      - 127.0.0.1:8888:80
    #network_mode: host

@williamdes
Copy link
Member

Hi @mmm4m5m

I understand, so when you did configure phpmyadmin-fpm and the webserver did you correctly mount the volumes in the two ?

If you have some example of a non working config that will be a good starting point

Anyway, I keep this open and will get back to you with a working example ;)

@mmm4m5m
Copy link
Author

mmm4m5m commented Jun 17, 2021

@williamdes I just tried it
Changed one line and it is not working:
image: phpmyadmin/phpmyadmin:5.1.1-fpm

The connection was reset

@williamdes
Copy link
Member

Can you give me the configuration you use for nginx or apache for example ?

Using fpm version you can not access by the browser without adding one more container as a webserver

@mmm4m5m
Copy link
Author

mmm4m5m commented Jun 18, 2021

@williamdes - the web server is inside the image. I use the image without any modifications. I do not understand you.

@williamdes
Copy link
Member

@williamdes - the web server is inside the image. I use the image without any modifications. I do not understand you.

There is no webserver in a -fpm variant :)

@mmm4m5m
Copy link
Author

mmm4m5m commented Jun 18, 2021

@williamdes What do you mean?
I assumed it is a "light" and smaller without apache. Something like:
php -S 0.0.0.0:80

If there is no web server in -fpm image, then what is the purpose of that image and why it listen on port 9000.
(Maybe it is not a question, if explanation is long, because I am not expert)

@williamdes
Copy link
Member

@williamdes What do you mean?
I assumed it is a "light" and smaller without apache. Something like:
php -S 0.0.0.0:80

If there is no web server in -fpm image, then what is the purpose of that image and why it listen on port 9000.
(Maybe it is not a question, if explanation is long, because I am not expert)

This is exactly what I mean, there is no webserver in a php fpm variant, it is meant to be used with another container
It listens 9000 port as an fpm service

@williamdes
Copy link
Member

Here is an example on how to use it: #253 (comment)

@williamdes
Copy link
Member

Also I think you where searching for an alpine variant, right?

@mmm4m5m
Copy link
Author

mmm4m5m commented Jun 18, 2021

I see - the web server is separate (as you said).
I guess apache image is better for me - separate/independent and more simple.
I was looking for simple and minimal variant.
(Not sure about apline, because my host OS is debian).

@williamdes
Copy link
Member

I see - the web server is separate (as you said).
I guess apache image is better for me - separate/independent and more simple.
I was looking for simple and minimal variant.
(Not sure about apline, because my host OS is debian).

You know with docker you can run quite a lot of linux OS, it uses your Kernel as base if I am not wrong
Alpine Linux is a good way to reduce space usage, be sure to check it out ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants