Docker: PhpMyAdmin has an upload limit of 2048KiB

Asked
Active3 hr before
Viewed126 times

5 Answers

dockerupload
90%

Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers , 2 You dockerfile PHP configurations won't affect phpmyadmin since it's not inside your app container. See hub.docker.com/r/phpmyadmin/phpmyadmin probably there's some tip there. – Elias Soares Nov 14 '19 at 23:59 ,open phpmyadmin container terminal: docker exec -it container_name bash, 1 Try pulling the latest version of phpmyadmin (docker-compose pull) – Elias Soares Nov 15 '19 at 0:05

 phpmyadmin:
    image: phpmyadmin / phpmyadmin
 container_name: 'php7.3-phpmyadmin'
 restart: 'always'
 links:
    -mysql
 environment:
    PMA_HOST: mysql
 PMA_PORT: 3306
 UPLOAD_LIMIT: 300 M
 ports:
    -'8082:80'
 volumes:
    -/sessions
load more v
88%

the following worked very well. My docker-compose.yml contains this:,I implemented UPLOAD_LIMIT ENV variable in ,Use like this UPLOAD_LIMIT env in docker. This is from my docker-compose.yml. Default value for UPLOAD_LIMIT is 2048K which is 2048KiB. Setting value to 300M increases it to 300MiB.,The following entry was added to the phpmyadmin.env: UPLOAD_LIMIT=256MB The larger number (Maximal: 256MiB) showed up right after the container was brought down and was back up again.

Reference: https://github.com/phpmyadmin/docker#environment-variables-summary

 phpmyadmin:
    image: phpmyadmin / phpmyadmin
 container_name: 'php7.3-phpmyadmin'
 restart: 'always'
 links:
    -mysql
 environment:
    PMA_HOST: mysql
 PMA_PORT: 3306
 UPLOAD_LIMIT: 300 M
 ports:
    -'8082:80'
 volumes:
    -/sessions
load more v
72%

when i start the container i have my webserver located on http://localhost.,When i open http://localhost:8080 and login to PMA it shows me that my upload limit i set to 2048KiB.,Further, the platform on which you are running may have an upper limit on how large an object it can dynamically allocate. You'll need to consult your platform's documentation to find out what that upper limit is.,docker-compose kill will kill a container but rebuild it from a cache. Meaning no changes to my files were taking place.

i have a docker-compose.yml that looks like this:

webserver:
   build: . / _docker / php
ports:
   -80: 80
links:
   -mysql
volumes_from:
   -app

mysql:
   image: mysql: 5.7
environment:
   MYSQL_DATABASE: "${DB_NAME}"
MYSQL_USER: "${DB_USER}"
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PW}"
MYSQL_PASSWORD: "${DB_PW}"
volumes:
   -. / _docker / data / db: /docker-entrypoint-initdb.d
volumes_from:
   -data

data:
   image: mysql: 5.7
volumes:
   -/var/lib / mysql
command: "true"

phpmyadmin:
   image: phpmyadmin / phpmyadmin
ports:
   -8080: 80
links:
   -mysql
environment:
   PMA_HOST: mysql

app:
   image: tianon / true
volumes:
   -.: /var/www / public_html

Dockerfile looking like this:

FROM php: 7.0 - apache
#php: 7.2 .2 - apache
#php: 5.6 .33 - apache

COPY php.ini / usr / local / etc / php /

   COPY 000 -
   default.conf / etc / apache2 / sites - available /

   RUN a2enmod rewrite
RUN a2enmod expires
RUN a2enmod headers

RUN apt - get update
RUN apt - get install - y zlib1g - dev libxml2 - dev libfreetype6 - dev libjpeg62 - turbo - dev libmcrypt - dev libpng12 .0 imagemagick
RUN docker - php - ext - install mysqli zip soap
RUN docker - php - ext - configure gd--with - freetype - dir = /usr/include / --with - jpeg - dir = /usr/include /
   RUN docker - php - ext - install gd

# Install opcache
RUN docker - php - ext - install opcache

and the php ini like this:

max_input_vars = 1500
max_execution_time = 300
post_max_size = 50 M
upload_max_filesize = 50 M
load more v
65%

hello, I’m using ubuntu 12.04 , i have setup mysql, phpadmin all, when i was ready to import my sql back up and it'z size around 105mb, but the current limit is (Max: 2,048KiB) in import. it is very low , so can any one please explain me how to extend this limit., Hollie's Hub for Good Supporting each other to make an impact , Hollie's Hub for Good Supporting each other to make an impact , Get the latest tutorials on SysAdmin and open source topics.

Edit /etc/php5/apache2/php.ini, set upload_max_filesize and post_max_size to 150M and restart Apache:

sudo service apache2 restart
load more v
75%

Sorry, something went wrong. ,Looks like 4.9 version messed up again. 4.8 version had max upload size 512MiB. But 4.9 has 2,048KiB. Also getting this 502 error everytime I import any database.,Successfully merging a pull request may close this issue., Customer stories →

Looks like 4.9 version messed up again. 4.8 version had max upload size 512MiB. But 4.9 has 2,048KiB. Also getting this 502 error everytime I import any database.

4.9

Looks like 4.9 version messed up again. 4.8 version had max upload size 512MiB. But 4.9 has 2,048KiB. Also getting this 502 error everytime I import any database.

4.8

Looks like 4.9 version messed up again. 4.8 version had max upload size 512MiB. But 4.9 has 2,048KiB. Also getting this 502 error everytime I import any database.

4.9

Looks like 4.9 version messed up again. 4.8 version had max upload size 512MiB. But 4.9 has 2,048KiB. Also getting this 502 error everytime I import any database.

2, 048 KiB
load more v

Other "docker-upload" queries related to "Docker: PhpMyAdmin has an upload limit of 2048KiB"