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

config.user.php and config.user.inc.php ignored #364

Closed
nunoperalta opened this issue May 11, 2022 · 11 comments
Closed

config.user.php and config.user.inc.php ignored #364

nunoperalta opened this issue May 11, 2022 · 11 comments
Assignees

Comments

@nunoperalta
Copy link

nunoperalta commented May 11, 2022

Trying to install phpMyAdmin in a new docker-compose set here, but I don't seem to be able to get it working the way I want.

I have:

    volumes:
      - ./config.user.inc.php:/etc/phpmyadmin/config.user.inc.php

But everything there seems to be ignored.
Even if I put an exit; at the top. The login page loads.

Even if I put:

    volumes:
      - ./config.user.php:/etc/phpmyadmin/config.user.php

with an exit; at the top, the login page still loads.

If I open shell inside the container, I can verify that the files are there for sure.
But phpMyAdmin seems to be ignoring those configs completely!

Using the :latest version...

File starts with:

<?php
exit;

I deleted the container, and put:

    environment:
      - PMA_ARBITRARY=1
    #volumes:
    #  - ./config.user.inc.php:/etc/phpmyadmin/config.user.inc.php

To see if I make it show the Server field... nope!
Still the default page.
Not really sure what's going on!

@nunoperalta
Copy link
Author

nunoperalta commented May 11, 2022

Tag phpmyadmin:5.1.2 works...

@williamdes
Copy link
Member

Tag phpmyadmin:5.1.2 works...

5.1.3 should work too

@williamdes
Copy link
Member

Related to #361

@nunoperalta
Copy link
Author

Tag phpmyadmin:5.1.2 works...

5.1.3 should work too

oh... yesterday when I was downloading :latest, the Docker page at https://hub.docker.com/_/phpmyadmin was saying that the latest version was 5.1.3.

Now I see it says 5.2.0.
So, are you saying this is a new bug in 5.2.0, and that I was actually downloading that version? 🤦‍♂️ 😅

That explains then.
Because, I have another instance running for months with 5.1.3 and it works fine!

@williamdes
Copy link
Member

Tag phpmyadmin:5.1.2 works...

5.1.3 should work too

oh... yesterday when I was downloading :latest, the Docker page at https://hub.docker.com/_/phpmyadmin was saying that the latest version was 5.1.3.

Now I see it says 5.2.0. So, are you saying this is a new bug in 5.2.0, and that I was actually downloading that version? man_facepalming sweat_smile

That explains then. Because, I have another instance running for months with 5.1.3 and it works fine!

For 5.2.0 I have no idea this error comes from since we changed nothing on the Dockerfiles between 5.1.3 and 5.2.0

@tianon Did you say there is a Debian update in progress ?

@nunoperalta
Copy link
Author

Using image: phpmyadmin instead of image: phpmyadmin/phpmyadmin also doesn't work.
config.inc.php ignored.

@Slamdunk
Copy link

I can confirm this issue: starting from 5.2.0, the file /etc/phpmyadmin/config.user.inc.php gets now ignored.

Until 5.1.3 it used to be read as expected.

@pjbakker
Copy link

Had the same issue.

The latest version is NOT reading /etc/phpmyadmin/config.inc.php, but /var/www/html/config.inc.php and there is no symlink present. Making the symlink solves the problem..

williamdes added a commit that referenced this issue May 12, 2022
@williamdes williamdes self-assigned this May 12, 2022
@ibennetch
Copy link
Member

A fix for this has been submitted to the official Docker repository.

Our own 'phpmyadmin/phpmyadmin' repository has already been updated, but as I mention in #363 I hope to deprecate that repository in the future.

@nunoperalta
Copy link
Author

Our own 'phpmyadmin/phpmyadmin' repository has already been updated,

Thanks for that. But what about the official image? phpmyadmin
That seems to be outdated still.
Thanks!

@williamdes
Copy link
Member

Our own 'phpmyadmin/phpmyadmin' repository has already been updated,

Thanks for that. But what about the official image? phpmyadmin That seems to be outdated still. Thanks!

Pending review ;)
See: docker-library/official-images#12425

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

No branches or pull requests

5 participants