VestaCP PHP-FPM Optimization

VestaCP PHP-FPM Optimization

VestaCP is a free web control panel developed by Russian people. This panel is based on LAMP and supports Nginx for static processing.
A simple and secure web panel. The following are the optimizations for PHP-FPM.

1.
In the file

 /usr/local/vesta/data/templates/web/php-fpm/default.tpl /usr/local/vesta/data/templates/web/php-fpm/socket.tpl

Find pm.max_spare_servers and add it at the bottom

 pm.process_idle_timeout = 10s pm.max_requests = 500

2. Rebuild the PHP-FPM configuration file

a. Back up nginx.conf and snginx.conf.

b. Rebuild the PHP-FPM configuration file
/usr/local/vesta/bin
./v-rebuild-web-domains [USER]

[USER] is the user name using this configuration

c. Restart php-fpm

 service php-fpm restart

via: https://www.codincafe.com/2017/06/16/optimize-php-fpm-vestacp/amp/

<<:  Zare: £40/month/E3-1240v5/16GB memory/1TB hard drive/20TB bandwidth/UK

>>:  Cloudflexy 512MB RAM Los Angeles KVM VPS Review

Recommend

HostKoi: $7/year/50GB space/100GB traffic/unlimited domain name binding

HostKoi, an American hosting provider, provides v...

VPS4Storage: £30/year/512MB RAM/75GB storage/2TB bandwidth/Xen/Germany

VPS4Storage, a British hosting company under web-...

AlphaVPS: €8/year/128MB RAM/5GB SSD space/100GB bandwidth/KVM/Los Angeles/UK

AlphaVPS, an American hosting provider, was estab...

ioZoom: $7/month/2GB RAM/20GB SSD space/2TB bandwidth/KVM/Los Angeles

ioZoom, possibly affected by linode's free me...

NFPHosting: $5/year/100GB space/2TB traffic/Los Angeles

NFPHosting, which claims to have been established...

Hostwinds: $4.49/month/1GB memory/30GB SSD space/1TB traffic/KVM/Seattle/Dallas

Hostwinds, a long-established American hosting pr...

MAPn3.1.1 Special Edition

MAPn is an automatic compiler for the service env...