mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-15 14:52:05 -05:00
[PR #1009] [MERGED] fix(phpmyadmin): raise PHP upload limit so SQL imports over 2MB work #16317
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Dokploy/templates/pull/1009
Author: @Siumauricio
Created: 7/14/2026
Status: ✅ Merged
Merged: 7/14/2026
Merged by: @Siumauricio
Base:
canary← Head:fix/phpmyadmin📝 Commits (1)
9bdbe26fix(phpmyadmin): raise PHP upload limit so SQL imports over 2MB work📊 Changes
2 files changed (+6 additions, -2 deletions)
View changed files
📝
blueprints/phpmyadmin/docker-compose.yml(+3 -1)📝
blueprints/phpmyadmin/template.toml(+3 -1)📄 Description
Problem
Issue #236 reports the phpmyadmin template failing with (screenshots in the issue):
Root cause: the template does not set
UPLOAD_LIMIT, so the official phpMyAdmin image keeps PHP's defaultpost_max_size/upload_max_filesizeof 2M (2097152 bytes). Any SQL import larger than 2MB is rejected by PHP before phpMyAdmin runs, and the emitted warning then breakssession_start(), producing the error page in the screenshots.Fix
UPLOAD_LIMIT(default 512M) andMAX_EXECUTION_TIME(default 600) to the phpmyadmin service, both configurable from the template env so users can tune them from the Dokploy UI.MYSQL_DATABASEenv var into the compose file, replacing the hardcodedtu_base_de_datosplaceholder, and default it tophpmyadmininstead of the systemmysqlschema.Verification (deployed on a live Dokploy instance)
done; both containers running.GET /→ HTTP 200, auto-login into the bundled MySQL works:<title>... / db | phpMyAdmin 5.2.1</title>.index.php?route=/importnow returns HTTP 200 with a normal phpMyAdmin page — noexceeds the limitwarning and nosession_starterror.node build-scripts/generate-meta.js --check→ 476 templates validated.Closes #236
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.