Problems changing upload_max_filesize

  • Hello, today i have got issue with wordpress, need change upload_max_filesize because 2 mb is the max.
    I check the php info from this version of php (i have got phpswitcher pluggins) i see:



    Code
    1. upload_max_filesize 2M


    Ok, this is the problem, need edit and change value, i thing.


    I use this post:https://i-mscp.net/index.php/T…ad_max_filesize#post47981


    But when i edit the php.ini fron this path /usr/local/etc/imscp_panel i see this:



    Code
    1. ; Maximum allowed size for uploaded files.
    2. ; http://php.net/upload-max-filesize
    3. upload_max_filesize = 20M


    How i can change for all suscription and for one ?? its possible ?? any doc about this ??


    Thank you in advanced, best regards and happy cristmats. :saint:

  • Hello,


    please follow our Reporting rules - Reminder


    Do you use PHP-FPM or FastCGI?


    Which PHP Version you have compiled?


    If FPM and PHP 7.1 - please have a look at following conf file in this folder: /opt/phpswitcher/2017xxxx/php7.1/etc/php-fpm.d/ and your domain.tld.conf file!


    Change the following rows do your needs:


    php_admin_value[post_max_size] = xxM
    php_admin_value[upload_max_filesize] = xxM


    After change, you need to restart the service with: service psw7.1-fpm restart


    EDIT: Keep in mind, that this changes are not protected for updates!


    Best regards

    Support Infos: I-MSCP Version: 1.5.x / Distro: Debian Stretch / PHP: 7.1.27 - FPM / I-MSCP Plugins: Let´s Encrypt + PHPSwitcher (latest Versions)

  • EDIT: Keep in mind, that this changes are not protected for updates!

    He should be able to change the max upload value through the PHP editor normally, even for self-compiled PHP versions:

    • As administrator, he must edit the reseller properties (PHP properties) for raising the max upload value
    • As the reseller, he must edit the domain properties (PHP properties) for raising the max upload value

    That way, the change should be protected against updates.


    See also: Cambiar valores en configuracion de PHP


    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206