Docker container where is the php.ini file

Hi, i installed Nextcloud on a Raspberry 5 via Docker, now iā€˜m stucked becaus i cant find the relevant php.ini to change the Max Upload file size. Can anybody help me?
I tried to find the file by using ā€žfindā€œ but no result. The fix with php.info i cant use because i dont see a www directory.

hi @trainman welcome to the forum :handshake:

you are missing the required support template. Please fill this form out and edit into your post. This will give us the technical info and logs needed to help you in case the machine in question in spitting out errors! Since you’ve provided zero technical details it is impossible to help you as-is. Thanks.

Please use the search - lot of issues have been discussed already

If there are specific issues or error please describe what you tried so far and which problems you hit!

Which Docker image? Check the docs for the image you’re using as there are often easier ways of doing this.

E.g. see the PHP_UPLOAD_LIMIT Docker environment variable for the micro-services image.

Hi, thanks for Helping me

I used a install Guide that use the official docker-Compose Container for nextcloud.
My Setting for installing was:

version: '2'
services:
  mariadb:
    image: mariadb
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
    ports:
      - 9022:3306
    volumes:
      - /root/nextcloud/mariadb:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=MeinSicheresPasswort
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=root
  nextcloud:
    image: nextcloud
    restart: always
    ports:
      - 8080:80
    links:
      - mariadb:mysql
    volumes:
      - /root/nextcloud/nextcloud:/var/www/html 
      - /root/nextcloud/apps:/var/www/html/custom_apps 
      - /root/nextcloud/config:/var/www/html/config 
      - /mnt/ssd/ncdata:/var/www/html/data 
    environment:
      - MYSQL_PASSWORD=MeinSicheresPasswort
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=root
      - MYSQL_HOST=mariadb

Then use the linked environment variable in your Compose file. There is no need to change your php.ini.

Hey jtr

Thanks, thats the solution. i add these to my env in docker.

But now i’m still at the same issue - i have the issue that when i try to sync my Mac to Nextcloud (official Nextcloud client) i became several errors like ā€œ413 request Entity too largeā€ i hoped to fix that by edit the php.ini
in my enviroments i add:

  • PHP_UPLOAD_LIMIT 100G
  • NEXTCLOUD_UPLOAD_LIMIT=100G
  • APACHE_BODY_LIMIT = 0

I try to upload a file by webbrowser with 12GB and thats working.
what do i have to change for that?

All of the official clients use chunking by default (including the Web client) so most of those parameters should be fairly irrelevant. And file size shouldn’t matter too much (in general).

But there could be other factors.

When you’re testing the Web client (which apparently works), is that from the same Mac and via exactly the same URL as you’re using in the Desktop client?

Where does your HTTPS terminate?

Also, are you using anything like Cloudflare?

Lastly, when you get the 413, what are the entries in your logs around that time period? Specifically:

  • web server access log
  • nextcloud.log

It would also be helpful if you posted your general config (occ config:list system from inside the app container) as requested in the original support template. We ask for these things to save everyone time and because it wastes time asking for the same info over and over again. :slight_smile: