Skip to content

Instantly share code, notes, and snippets.

View thecodeholic's full-sized avatar

TheCodeholic thecodeholic

View GitHub Profile

To make virtual hosts running using php-fpm for different users

  • apt-get install libapache2-mod-ruid2
  • a2enmod mpm_prefork
  • service apache2 restart
  • service php7.0-fpm restart
  • cp /etc/php/7.0/fpm/pool.d/www.conf /etc/php/7.0/fpm/pool.d/{YOUR_DOMAIN_NAME}.conf
  • vim /etc/php/7.0/fpm/pool.d/{YOUR_DOMAIN_NAME}.conf and change the parameters