docker-partkeepr icon indicating copy to clipboard operation
docker-partkeepr copied to clipboard

Increase PHP upload_max_filesize

Open Germwalker opened this issue 3 years ago • 1 comments

Heya,

I would like to increase the upload_max_filesize parameter from php.ini file.

Here are the options : upload_max_filesize = 20M post_max_size = 21M

I'm not a docker expert, i tried to rebuild the docker partkeepr container with the modified php.ini but it's not working as the new parameters are not updated inside the container.

I don't want to lose my database, how can i rebuild the container with the new php.ini ?

Germwalker avatar Feb 27 '22 03:02 Germwalker

Here is my temporary solution. I suppose this will get undone if I redeploy the containers.

Complete php.ini file: [PHP] short_open_tag = Off max_execution_time = 180 upload_max_filesize = 20M post_max_size = 20M

[Date] date.timezone = "America/New_York"

Assuming a clone of https://github.com/mhubig/docker-partkeepr in your $HOME and the edits as above... Steps:

  1. Stop the partskeeper Docker containers
  2. SSH to server running Docker container
  3. cd ~/docker-partskeeper
  4. docker cp php.ini docker-partkeepr_partkeepr_1:/usr/local/etc/php/
  5. Restart the Docker containers

GH15ADF avatar Jun 30 '22 12:06 GH15ADF