Apache php-fpm

Issues related to applications and software problems
Post Reply
neofita2
Posts: 14
Joined: 2017/03/15 17:34:33

Apache php-fpm

Post by neofita2 » 2019/05/23 06:34:23

Hi
i was wondering if someone can help me configure multiple pools on php-fpm and use them in a virtuhost.
I am trying to have different users for different directory
for example
https://mysite.com/webmail with a user webmail
https://mysite.com/joomla with a user joomla
https://mysite.com/phpmysql with a user phpmysql

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: Apache php-fpm

Post by remirepo » 2019/05/23 08:54:06

Simply
- duplicate default pool configuration (www.conf)
- update pool to change pool name, port (listen), user, and session directory
- adapt the SetHandler for each vhost or directory

Read https://developers.redhat.com/blog/2017 ... tion-tips/

Also https://blog.remirepo.net/post/2016/04/ ... orkstation (with vhost example, 1 per PHP version but works the same, 1 pool per vhost / project)
Remi's Repository - Forum - Blog

neofita2
Posts: 14
Joined: 2017/03/15 17:34:33

Re: Apache php-fpm

Post by neofita2 » 2019/05/23 14:34:24

Thank you for you reply, I will read the link.
I was able to have it working with ProxyPassMatch

Post Reply