# Unable to Install Modules Due to Size

**URL:** <https://www.dolibarr.org/forum/t/unable-to-install-modules-due-to-size/23524>\
**Category:** Using my Dolibarr\
**Tags:** Linux, External-Modules\
**Created:** [March 24, 2023, 7:18pm UTC](https://www.dolibarr.org/forum/t/unable-to-install-modules-due-to-size/23524 "2023-03-24T19:18:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![S3v3nD34dly51ns](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@S3v3nD34dly51ns](https://www.dolibarr.org/forum/u/S3v3nD34dly51ns)\
**Post date:** [March 24, 2023, 7:18pm UTC](https://www.dolibarr.org/forum/t/unable-to-install-modules-due-to-size/23524/1 "2023-03-24T19:18:02Z")

</div>

So I have been banging my head against a wall for some time now. I have Dolibarr installed as a docker container on an Unraid Operating System. I am using MariaDB as an external database. I have purchased a module but I am unable to install it due to the file size being larger than 2 MB. I am needing to increase the max upload file size via PHP from 2MB to something a little more workable. I cannot for the life of me find where to change this setting. This is an ongoing issue, as most of the external modules are more than 2MB in size.

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [March 24, 2023, 8:04pm UTC](https://www.dolibarr.org/forum/t/unable-to-install-modules-due-to-size/23524/2 "2023-03-24T20:04:14Z")

</div>

Hello,

This is not related to Dolibarr, but the infrastructure.  
5s on google : [How to override upload\_max\_filesize in php.ini in docker image - Stack Overflow](https://stackoverflow.com/questions/65003526/how-to-override-upload-max-filesize-in-php-ini-in-docker-image)

---

<div class="post-metadata">

**Author:** ![S3v3nD34dly51ns](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@S3v3nD34dly51ns](https://www.dolibarr.org/forum/u/S3v3nD34dly51ns)\
**Post date:** [March 27, 2023, 6:18pm UTC](https://www.dolibarr.org/forum/t/unable-to-install-modules-due-to-size/23524/3 "2023-03-27T18:18:17Z")

</div>

Thank you again ksar for the insight. I actually had to hit up ChatGPT on how to do this and was able to get it to successfully work. Below are the steps I took.

To increase the PHP max upload filesize for the Tuxgass/Dolibarr container from within Unraid without a text editor, you can follow these steps:

1. Open the Unraid web interface and go to the Docker tab.
2. Find the Tuxgass/Dolibarr container and click the “Terminal” icon to open a console session.
3. In the console, type the following command to navigate to the directory where the PHP configuration file is located:

cd /usr/local/etc/php/conf.d/

1. Type the following command to create a new configuration file:

touch custom.ini

1. Type the following command to open the new configuration file in the console:

echo “upload\_max\_filesize = 100M” \> custom.ini

Replace “100M” with the maximum upload filesize that you want to set.  
6. Type the following command to restart the container so that the changes take effect:

docker restart \<container\_name\>

Replace “\<container\_name\>” with the name of the Tuxgass/Dolibarr container.

After completing these steps, the PHP max upload filesize should be increased for the Tuxgass/Dolibarr container.

---

<div class="post-metadata">

**Author:** ![timchoi](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/t/3da27b/32.png) [@timchoi](https://www.dolibarr.org/forum/u/timchoi)\
**Post date:** [April 1, 2024, 3:23am UTC](https://www.dolibarr.org/forum/t/unable-to-install-modules-due-to-size/23524/4 "2024-04-01T03:23:38Z")

</div>

Thank you for your clear explanation.  
But, can you explain more “After completing these steps, the PHP max upload filesize should be increased for the Tuxgass/Dolibarr container.” at the last line of your answer?

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [April 1, 2024, 7:13am UTC](https://www.dolibarr.org/forum/t/unable-to-install-modules-due-to-size/23524/5 "2024-04-01T07:13:26Z")

</div>

Try setting it as an environment variable for your container.

> **[GitHub - tuxgasy/docker-dolibarr: Docker image for Dolibarr with auto...](https://github.com/tuxgasy/docker-dolibarr)**
>
> Docker image for Dolibarr with auto installer on first boot - tuxgasy/docker-dolibarr

> Environment variables summary

```auto
PHP_INI_UPLOAD_MAX_FILESIZE	2M	PHP Maximum allowed size for uploaded files
PHP_INI_POST_MAX_SIZE	8M	PHP Maximum size of POST data that PHP will accept.

```

try setting one of those one at a time.

---

<div class="post-metadata">

**Author:** ![timchoi](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/t/3da27b/32.png) [@timchoi](https://www.dolibarr.org/forum/u/timchoi)\
**Post date:** [April 2, 2024, 6:20am UTC](https://www.dolibarr.org/forum/t/unable-to-install-modules-due-to-size/23524/6 "2024-04-02T06:20:08Z")

</div>

Thank you for your sincerely mention.  
I think it refers to when installing or reinstalling. Is there a way to change the settings by just editing the configuration file (ini or conf) and restarting the daemon?

---

<div class="post-metadata">

**Author:** ![timchoi](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/t/3da27b/32.png) [@timchoi](https://www.dolibarr.org/forum/u/timchoi)\
**Post date:** [April 2, 2024, 6:23am UTC](https://www.dolibarr.org/forum/t/unable-to-install-modules-due-to-size/23524/7 "2024-04-02T06:23:05Z")

</div>

As you mentioned, I’ve tried but I just get the no change result and the custom.ini file is removed after docker restart? What do you think what I am wrong? hum…

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [April 3, 2024, 3:00pm UTC](https://www.dolibarr.org/forum/t/unable-to-install-modules-due-to-size/23524/8 "2024-04-03T15:00:18Z")

</div>

> [@timchoi](#):
>
> I think it refers to when installing or reinstalling.

It should not matter if you recreate the Dolibarr container, it should just reuse any persistent volumes or bind some external folders to internal folders at start.

And the database container can keep running even if you destroy the Dolibarr container.

> [@timchoi](#):
>
> Is there a way to change the settings by just editing the configuration file (ini or conf) and restarting the daemon?

There might be this method.

1. enter into the container
2. edit the relevant file
3. stop and start the container

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [April 3, 2024, 3:01pm UTC](https://www.dolibarr.org/forum/t/unable-to-install-modules-due-to-size/23524/9 "2024-04-03T15:01:44Z")

</div>

> [@timchoi](#):
>
> I’ve tried but I just get the no change result and the custom.ini file is removed after docker restart? What do you think what I am wrong

I think you should create your container with those environment variables that is suggested.

---

<div class="post-metadata">

**Author:** ![timchoi](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/t/3da27b/32.png) [@timchoi](https://www.dolibarr.org/forum/u/timchoi)\
**Post date:** [April 4, 2024, 2:45am UTC](https://www.dolibarr.org/forum/t/unable-to-install-modules-due-to-size/23524/10 "2024-04-04T02:45:04Z")

</div>

Thank you so much. I’ve solve the problem. Honestly, I don’t understand very well about the docker and containers. But finally, I understand that it is just a binary files. So you advise me to modify relevant file and restart container.  
Thank you again for your help and your patient. 🙂
