[FIXED] phpMyAdmin - How to increase Max File Upload without editing global php.ini?

Discussion in 'Installation/Configuration' started by Outbreaker, Sep 22, 2022.

  1. Outbreaker

    Outbreaker Member

    Hi,
    I'm trying to find a way to increase the phpMyAdmin Max File Upload from 2M to 50M. I added this below to the "/etc/apache2/conf-available/phpmyadmin.conf" file but it doesn't work. :(
    Code:
     <IfModule mod_php7.c>
     php_value upload_max_filesize 50M
     php_value post_max_size 50M
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    If you are using ISPConfig, add that to the website options tab "Custom PHP ini settings".
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Is this an apache or Nginx server? On an Apache server, this should work if the installed mod_php is PHP 7.x.
     
  4. Outbreaker

    Outbreaker Member

    ISPConfig did not add phpMyAdmin as a website.
    I'm running Debian 11 with Apache.
     
  5. Outbreaker

    Outbreaker Member

    Found the solution, and here is the fix. ;)
    Create a file ".user.ini" in the folder "/usr/share/phpmyadmin" and then add this Quote Code below. :)
    Code:
    memory_limit = 128M
    upload_max_size = 64M
    post_max_size = 64M
    upload_max_filesize = 64M
    max_execution_time = 300
    max_input_time = 900
    The ".htaccess" won't work at all when adding a "php_value" command, this will result in a server error. :eek:
    Probably a good idea to add something like this to the AutoInstaller to make it easier for someone to change this in phpMyAdmin.
     
    Last edited: Sep 22, 2022
    ahrasis likes this.

Share This Page