Skip to content

Commit

Permalink
Merge phpmyadmin#401 - Add back a /sessions volume for sessions persi…
Browse files Browse the repository at this point in the history
…stence
  • Loading branch information
williamdes committed Jun 29, 2023
2 parents a6c091b + 0730e51 commit adf9118
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Add `TZ` env var to change PHP `date.timezone` (#133)
- Update to PHP 8.2 (#411)
- Add back a `/sessions` volume for sessions persistence (#399)
- Support adding custom configurations in `/etc/phpmyadmin/conf.d` (#401)

## [5.2.1] - 2023-02-08

Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@ See the following links for config file information:
* https://docs.phpmyadmin.net/en/latest/config.html#config
* https://docs.phpmyadmin.net/en/latest/setup.html

## Adding custom configuration in `/etc/phpmyadmin/conf.d`

you can also consider storing your custom configuration files in the folder `/etc/phpmyadmin/conf.d`, which is very suitable for managing multiple phpMyAdmin configuration files for different hosts,Then you can create `server-1.php`, `server-2.php`, or any file name you want, and store them in the conf.d directory mounted on the host.

On the `docker run` line like this:

```sh
docker run --name phpmyadmin -d --link mysql_db_server:db -p 8080:80 -v /some/local/directory/conf.d:/etc/phpmyadmin/conf.d:ro phpmyadmin:latest
```

## Usage behind a reverse proxy

Set the variable ``PMA_ABSOLUTE_URI`` to the fully-qualified path (``https://pma.example.net/``) where the reverse proxy makes phpMyAdmin available.
Expand Down
7 changes: 7 additions & 0 deletions apache/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,10 @@
if (file_exists('/etc/phpmyadmin/config.user.inc.php')) {
include '/etc/phpmyadmin/config.user.inc.php';
}

/* Support additional configurations */
if (is_dir('/etc/phpmyadmin/conf.d/')) {
foreach (glob('/etc/phpmyadmin/conf.d/*.php') as $filename) {
include $filename;
}
}
7 changes: 7 additions & 0 deletions config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,10 @@
if (file_exists('/etc/phpmyadmin/config.user.inc.php')) {
include '/etc/phpmyadmin/config.user.inc.php';
}

/* Support additional configurations */
if (is_dir('/etc/phpmyadmin/conf.d/')) {
foreach (glob('/etc/phpmyadmin/conf.d/*.php') as $filename) {
include $filename;
}
}
7 changes: 7 additions & 0 deletions fpm-alpine/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,10 @@
if (file_exists('/etc/phpmyadmin/config.user.inc.php')) {
include '/etc/phpmyadmin/config.user.inc.php';
}

/* Support additional configurations */
if (is_dir('/etc/phpmyadmin/conf.d/')) {
foreach (glob('/etc/phpmyadmin/conf.d/*.php') as $filename) {
include $filename;
}
}
7 changes: 7 additions & 0 deletions fpm/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,10 @@
if (file_exists('/etc/phpmyadmin/config.user.inc.php')) {
include '/etc/phpmyadmin/config.user.inc.php';
}

/* Support additional configurations */
if (is_dir('/etc/phpmyadmin/conf.d/')) {
foreach (glob('/etc/phpmyadmin/conf.d/*.php') as $filename) {
include $filename;
}
}

0 comments on commit adf9118

Please sign in to comment.