I’ll give you an example from my own server. The files in my DocumentRoot are owned by “sdswww”.
/etc/php-fpm.d/www.sterndata.com.conf
[www.sterndata.com]
; Using TCP Sockets
;listen = 127.0.0.1:9001
;listen.allowed_clients = 127.0.0.1
; Using Unix Sockets
listen = /var/run/php-fpm/www.sterndata.com.sock
listen.mode = 0666
user = sdswww
group = sdswww
pm = ondemand
;pm = dynamic
pm.max_children = 6
pm.status_path = /statusfpm
slowlog = /var/log/php-fpm/www.sterndata.com_slow.log
catch_workers_output = yes
chdir = /var/www/www.sterndata.com/wordpress
;php_flag[display_errors] = Off
;php_flag[magic_quotes_gpc] = Off
;php_flag[track_vars] = On
;php_flag[register_globals] = Off
php_value[max_execution_time] = 240
php_value[include_path] = .
php_value[session.save_handler] = files
;php_value[session.save_path] = /var/lib/php/mod_php/session
;php_value[session.save_path] = /var/lib/php/fpm/session
php_value[session.save_path] = /tmp
php_admin_value[max_input_vars] = 1800
php_admin_value[upload_max_filesize] = 16M
php_admin_value[post_max_size] = 16M
php_admin_value[expose_php] = Off
php_admin_value[error_log] = /var/log/php-fpm/www.sterndata.com_php-fpm.log
php_admin_flag[log_errors] = On
php_admin_flag[allow_url_fopen] = Off
php_admin_value[upload_tmp_dir] = /tmp
/etc/httpd/conf.d/www.sterndata.com.conf
<VirtualHost *:80>
ServerName www.sterndata.com
ServerAlias sterndata.com
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.sterndata.com$1 [R=301,L]
CustomLog /var/log/httpd/www.sterndata.com_access_log combined
ErrorLog /var/log/httpd/www.sterndata.com_error_log
</VirtualHost>
<VirtualHost *:443>
ServerName www.sterndata.com
ServerAlias sterndata.com
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/sterndata.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/sterndata.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/sterndata.com/chain.pem
DocumentRoot /var/www/www.sterndata.com/wordpress
CustomLog /var/log/httpd/www.sterndata.com_access_log combined
ErrorLog /var/log/httpd/www.sterndata.com_error_log
Protocols h2 h2c http/1.1
ProxyPassMatch ^/(.*\.php(/.*)?)$ unix://var/run/php-fpm/www.sterndata.com.s
ock|fcgi://127.0.0.1:9000/var/www/www.sterndata.com/wordpress timeout=300
<Directory /var/www/www.sterndata.com>
AllowOverride All
</Directory>
</VirtualHost>
Note that if you have questions, best to google around for suggestions related to your own particular Linux distro. I’m using CentOS 7.