php.ini - changing max file upload size

I am trying to upgrade my suitecrm and I ran into the config problem of my max file upload size is too small to be able to upload it.

I used the suitecrm feature of
Admin: Diagnostics
to see the phpinfo

I did find the php.ini file this way and found that the value was too low.

I changed it.

I rebooted apache

I then proceeded to upload the upgrade file again.

It failed because the max upload file was still too small.

I then realized that the php.ini file that I changed had a 2 MB limit.

The error that comes up says it has a 8MB limt.

It seems that the php.ini file I change was not the right one.

Here is the text I changed:

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 128M

Let me know what I might have missed or done incorrectly.

Thanks

Joseph

Hi, please try to also change the post_max_size

post_max_size = 8M

Afterwards, depending on your setup, restart your webserver (apache/nginx) or your php_fpm.

This solved it.

Thansk fo rthe help!!

Changes to php.ini have zero affect. I changed the like 4-5 suitecrm recommended values.

/etc/php/7.0/apache2/php.ini

I change and then restart apache.
systemctl stop apache2
systemctl start apache2

Then do another suitecrm diagnostics - no change to in memory values. Same error trying to upgrade about exceeding 52M

This is a recent Univention vmware install which works - just can’t upgrade now.

I don’t have php-fpm nor ngnix.

Seems like the normal php.ini has been circumvented somehow by these Univention people.

post_max_size = 60M
upload_max_filesize = 100M
memory_limit = 300M
file_uploads = On
max_execution_time = 180

1 Like

Yes, I know, I know - selecting the parameter values is not the issue. Getting the changes to actually take effect (even after restarting Apache), is.

Hi jakorsme,

  • please check if the lines you want to change start with a semicolon ( ; )
    remove this semicolon when you are changing these lines.
  • Create a file phpinfo.php in your suitecrm root with contents
   <?php
   phpinfo();

Go to http://your.suite.instance/phpinfo.php and check in “Loaded Configuration File” if php is actually using the php.ini you are changing.

Hey Im currently installing the SuiteCRM 8 on my server. But for some reason I keep getting the Upload File Size Error. I changed the upload_max_size and post_max_size but it still doesent work.
image

I dont know what to do anymore. I searched for other awnsers in other forum posts but nothing new.
If someone knows what to do, help is always wanted.

  1. Try these values in your php.ini, then reload apache, and report back your results:
post_max_size = 100M
upload_max_filesize = 100M
memory_limit = 512M
file_uploads = On
max_execution_time = 180

And reload apache with the command:
sudo systemctl reload apache2

  1. If that fails, then create a new file .user.ini, copy paste the values into that file, save it in the base directory of your Suite install, in the same directory containing the file index.php. Wait up to 5 minutes for the settings to take effect - PHP detects values from .user.ini only every 5 minutes. Report back your results.
1 Like

Thanks it worked. For some reason it has problems anything other than M

Under the exact post which provided the information that solved your question, please click the “Solution” button, so that other users will be able to find the solution to the same question faster.

I dont have that button? where can I find it?

oh, sorry, the “Solution” button is visible only to the original poster of this question, in this case, user @joehogan