# Howto tune php-fpm values when using docker

**URL:** <https://help.nextcloud.com/t/howto-tune-php-fpm-values-when-using-docker/64478>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Created:** [November 19, 2019, 10:18am UTC](https://help.nextcloud.com/t/howto-tune-php-fpm-values-when-using-docker/64478 "2019-11-19T10:18:44Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![ozboss](https://help.nextcloud.com/letter_avatar/ozboss/32/5_5575768a8748004e209b776fc1b2916d.png) [@ozboss](https://help.nextcloud.com/u/ozboss)\
**Post date:** [January 27, 2021, 8:10am UTC](https://help.nextcloud.com/t/howto-tune-php-fpm-values-when-using-docker/64478/8 "2021-01-27T08:10:36Z")

</div>

> [@Reiner\_Nippes](#):
>
> i guess `/usr/local/etc/php/conf.d/` in the container is the place of all php ini files.

Thanks, yes this is the correct location for php-related settings.

Like @mfreudenberg I was going through the “Server Tuning” section of the admin manual and stumbled upon “Tune PHP-FPM”.  
When I read up on it I came to the same conclusion as here:

> [@mfreudenberg](#):
>
> Check this post also: [Do I need PHP-FPM?](https://help.nextcloud.com/t/do-i-need-php-fpm/72457)

So basically Apache is using mod\_php for parallel processing and Nginx is using php-fpm.

Then @mfreudenberg seemed to have some success on changing the settings for php-fpm with the standard docker container.

> [@mfreudenberg](#):
>
> currently using the image nextcloud:16

> [@mfreudenberg](#):
>
> EDIT: Yes that worked very well. Thanks!

This is why I was wondering if I missed something.  
I tried setting these values myself but didn’t notice any significant performance difference.

This [reddit post](https://www.reddit.com/r/NextCloud/comments/9e5ljv/nextcloud_and_phpfpm_adjustments/) suggests to replace the mod\_php with php-fpm.  
This of course does not make sense with docker and the option would be to change to the fpm image (running Nginx as far as I know).

I don’t currently want to mess with my Nextcloud install as the performance is not too bad and I read about some security concerns regarding Nginx.  
I may give it a try in the future though.

If somebody has tried both versions I would appreciate any further insights into this.

---

_[View the full topic](https://help.nextcloud.com/t/howto-tune-php-fpm-values-when-using-docker/64478)._
