Our Nextcloud instance needs to use mod_php instead of mod_fpm or mod_fcgi so that it can copy large files to Samba shares. I'm not using the official CentOS 5.4 PHP repo because Nextcloud needs PHP 5.5 or higher. Instead I'm using Remi's PHP 7 repo.
From Nextcloud support:
How fast is the connection between your server and the SMB storage?
Official support (and test) is only for mod_php. There are often some issues with mod_fcgid and I can't tell you if there are some general restrictions or if it's just have to figure out a good setup (in contrast to mod_php or nginx, there is no example config to start from).
Is there a way for me to do this?