PHP database upload limit 2M increase

Discussion in 'Installation/Configuration' started by Fafa24, Oct 14, 2025.

Tags:
  1. Fafa24

    Fafa24 Member

    Hello,
    We have an Ubuntu 24.04 server with ISPconfig 3.3 latest version. It was installed using the Perfect Server Script with all PHP versions.
    Is there a way to increase the database upload limit generally or per website?
    We have set this directive under the website, option, custom PHP.ini settings

    ; --- Upload and POST limits ---
    upload_max_filesize = 512M
    post_max_size = 512M

    ; --- Memory & execution ---
    memory_limit = 512M
    max_execution_time = 120
    max_input_time = 120

    ; --- File handling ---
    max_file_uploads = 20

    ; --- Error logging ---
    display_errors = Off
    log_errors = On
    error_log = /var/log/php_errors.log

    ; --- Security hardening ---
    expose_php = Off
    allow_url_fopen = On
    allow_url_include = Off

    I believe the default limit of 2M was not overwritten, since we hit it when uploading a database.
    The website is using PHP 8.2 with PHP-FPM.

    Thanks
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Look at php.ini of your web server php-fpm (all version installed), edit in there instead, then restart the web server. Sed command is the fastest way to find and replace the relevant lines in all them.
     
    Last edited: Oct 14, 2025
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    You mean you uploaded a database with phpmyadmin? phpmyadmin is not part of your website, so website limits generally do not apply to it. You must change the global limits for phpmyadmin.
     

Share This Page