This repository has been archived by the owner on Feb 20, 2019. It is now read-only.
Document requirement for prefork MPM when using mod_php #3437
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a little bit hidden in:
https://github.com/owncloud/documentation/blob/3a5289e71a70d7b53b27cadd61804db5788ba9c4/admin_manual/configuration/server/oc_server_tuning.rst#mpm
but is a hard requirement when using mod_php because that module is not thread safe.
https://secure.php.net/manual/en/install.unix.apache2.php
Debian e.g. is enforcing this worker in their libapache2-mod-php7.0.postinst script:
but there are other distros / systems where people still enable multi-threaded MPMs like seen in e.g.:
https://central.owncloud.org/t/many-operation-canceled-connection-closed-errors-during-sync/6006/7
In general using anything else then prefork (like worker or event) will cause issues like the known:
Connection closed
Operation canceled
and maybe also the "expected filesize 4734206 got 458752" messages described by some one in here:
https://central.owncloud.org/t/expected-filesize-xxx-got-yyy-0/816
Edit
Some more refs: owncloud/core#22957, owncloud/core#12193, owncloud/core#26406, owncloud/core#9832, owncloud/core#9909, owncloud/core#28888
Edit2
I have also moved the MPM part from the OC Server Tuning docs. This is not really a tuning recommendation but a installation requirement. Furthermore added a few additional references to the troubleshooting guide.