Changing file size upload Hestia/Wordpress

i know this topic has been covered, but they have been closed and there is never a clear resolution. I realize that i need to google this, before it gets suggested, and i have spent hours on this and i am really stuck. I am trying to transfer a wordpress website from one hestia install to another. Thats it.

  1. Word press has a max file size upload of 100mb…
  2. Hestia has a 2M file upload limit, according to the settings in /etc/php/8.2/cli/php.ini
    ; Maximum allowed size for uploaded files.
    ; PHP: Description of core php.ini directives - Manual
    upload_max_filesize = 2M

That was fairly straightforward editing the php file in the setting of the control panel; however, no matter what i do, i cannot change the export file size in wp-all-in one
1gb
more than 1GB using all-in-one wp migration. I have installed older versions which actually have the file size, not hidden and changed it to a different value.

I have read in the forums that there are other changes that might be needed, in editing the plugin files, specifically the constants.php settings.

I could transfer it using sftp; however, i think i would have to transfer the db and files separately, which i have never done before.

Any suggestions, thanks

Create a file phpinfo.php in your website, containing:

<?php
phpinfo();
?>

Open that file in your browser.
You can find the current php-values as well as the path of the php.ini file that is being used by your website.

First make sure you set the correct allowed sizes in your panel on this page:

https://hcp.example.com:8083/edit/server/php/

post_max_size 2G
upload_max_filesize 2G

Than create a .user.ini file in the public_html folder and put this in it:

upload_max_filesize = 2G
post_max_size = 2G

Now you have ability to work with larger files.

Also, instead of trying to upload the file through the Wordpress Dashboard just upload it through HCP file manager in:

https://example.com/wp-content/ai1wm-backups

Now it appears in ‘Backups’ in AIO migration plugin.

try /etc/php/$version/fpm/php.ini

1 Like

HI Maurice, thanks but could you please expand a little bit. Where would i put this file, under root? And would it need any special permissions, thanks

HI Chris,

I did the first part, that was straightforward, after changing some settings. When you mention “.user.ini” file, is that that the actual name, or is the user supposed to reflect the domain or actual user ?
I like the backups idea, much simpler.

thanks

Thanks for pointing that out, that was a link from a prior email that i never used, as it did not exist. I did use the one you suggested as it is the same in editing php in settings.

Thx

Yes, that’s the actual name of the file.

I did not specify the location because it doesn’t matter.
I did not specify permissions because it doesn’t matter.
What have you tried before seeking help?

I believe I mentioned that I changed the php settings on the hestia control panel and it worked but no change on wp. Then I changed the settings in the wp press plug in, wp all-in-one and it affected the import but not export, in fact it never changed no matter what I tried!

Have you created the .user.ini file as suggested?
Did you restart apache after applying my suggestions?

sudo systemctl restart apache2