linuxserver / docker-phpmyadmin

GNU General Public License v3.0
23 stars 2 forks source link

[BUG] PMA_CONFIG_BASE64 and PMA_USER_CONFIG_BASE64 do not work #39

Closed xboxfly15 closed 3 days ago

xboxfly15 commented 3 days ago

Is there an existing issue for this?

Current Behavior

Using lscr.io/linuxserver/phpmyadmin:latest PMA_USER_CONFIG_BASE64 and PMA_CONFIG_BASE64 do not work at all. All other environment variables work except for them two.

Expected Behavior

Work the same as the official image which overrides any previous environment variables.

Steps To Reproduce

  1. Use lscr.io/linuxserver/phpmyadmin:latest
  2. Use https://pr.gg/base64/ to generate base64
  3. Enter something to easily tell if env variable is working, like
    <?php
    $cfg['Servers'] = [
    1 => [
    'auth_type' => 'cookie',
    'host' => 'mysqldb',
    'verbose' => 'PMA_USER_CONFIG_BASE64 works',
    'port' => 3306,
    ],
    2 => [
    'auth_type' => 'cookie',
    'host' => 'mysqldb',
    'verbose' => 'PMA_USER_CONFIG_BASE64 works',
    'port' => 3306,
    ],
    ];
  4. Set PMA_USER_CONFIG_BASE64 to the result
  5. Visit PHPMyAdmin and see if server selector shows "PMA_USER_CONFIG_BASE64 works"

Environment

No response

CPU architecture

x86-64

Docker creation

n/a

Container logs

n/a. PHPMyAdmin works fine except for these 2 env variables.
github-actions[bot] commented 3 days ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

thespad commented 3 days ago

Please provide the actual run/compose you're trying to use with this env.

xboxfly15 commented 3 days ago

I’m using Coolify so there is none. It’s just the image with that environment variable.On 26 Nov 2024, at 3:38 pm, Adam @.***> wrote: Please provide the actual run/compose you're trying to use with this env.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

thespad commented 3 days ago

PMA_CONFIG_BASE64 & PMA_USER_CONFIG_BASE64 are not built-in envs that phpmyadmin can read, the official docker image does its own processing of them to replace the config files. I'll need to open a PR to make similar affordances for our image.

xboxfly15 commented 3 days ago

Cheers. Yeah I could not see any code in this repo that added such which I thought was weird as I was just lead to believe it supported all env variables based on the README We support all of the official [environment variables](https://docs.phpmyadmin.net/en/latest/setup.html#docker-environment-variables) for configuration... which is why I opened this issue.