• I host an installation of WordPress on my own server using Ubuntu 18.04 and noticed that after editing the php.ini file and increasing the upload limit from 20M to 128M it does not reflect on my admin page. I even tried the .htaccess method but that also didn’t work.

    Any suggestions?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @junior466 If this is not working then you can try to contact your hosting support they will change from the server as it seems it will be change from server side.

    Thread Starter junior466

    (@junior466)

    @alithewpdev I self host it on my own server.

    sab

    (@sainikbiswas)

    Hi @junior466 Here are a few things you might try.

    1. Create a info.php file in your server with the following file contents <?php phpinfo(); ?> Then open that file and search for the upload_max_filesize and the post_max_size directives and check whether they are set to 128M. If not make try to set both post_max_size=128M and upload_max_filesize=128M in your php.ini file.
    2. Make sure you have restarted Apache / PHP-FPM based on your setup. If your setup uses Apache with mod_php restart/reload apache for the changes to take effect. If your setup is Apache with PHP-FPM then restart PHP-FPM for the changes to take effect.

    That should hopefully make the changes live. Once you can confirm that, next check the WordPress settings page, which should show the correct settings. Hope this helps.

    Try an alternative method: If both php.ini and .htaccess methods don’t work, you can try modifying the wp-config.php file. Open the file and add the following line before the “/* That’s all, stop editing! Happy blogging. */” comment:
    @ini_set(‘upload_max_size’, ‘128M’);
    @ini_set(‘post_max_size’, ‘128M’);

    Save the file and check if the new upload limit is reflected in the WordPress admin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t change upload limit’ is closed to new replies.