LoginSignup
1
1

More than 5 years have passed since last update.

phpMyAdmin note

Last updated at Posted at 2016-01-07

Via Docker

Cool! No problem under ELB SSL-Terminate.

run (& pull)

docker run --name myadmin -it -d -e PMA_HOSTS=172.31.x.y,rdsxxx.amazonaws.com -p 8080:80 phpmyadmin/phpmyadmin

Container host listen 8080 for myadmin container.

Daemonize

With upstart (CentOS6, AmazonLinux, ubuntu14)

/etc/init/phpmyadmin.conf
description "phpmyadmin"
author "Me"
# start on started docker <- wanto use it, But this is wortless. upstart can not cautch SysV service.
start on stopped rc RUNLEVEL=[345]
stop on runlevel [!2345]
respawn
script
  /usr/bin/docker start -a myadmin
end script

Ops

initctl --reload-configuration
initctl start

# of course
chkconfig docker on

With systemd

/etc/systemd/system/phpmyadmin-service
[Unit]
Description=phpmyadmin
Requires=docker.service
After=docker.service

[Service]
Restart=always
ExecStart=/usr/bin/docker start -a myadmin
ExecStop=/usr/bin/docker stop -t 2 myadmin

[Install]
WantedBy=default.target

Remenber systemctl daemon-reload

Tips (via docker)

Why SSL fail (https://url:80/index.php....)?

config.inc.php
$cfg['ForceSSL'] = true;

config.inc.php directive

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1