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

Baidu Cloud: 88 yuan/year/1GB memory/40GB space/1Mbps/KVM/domestic

Baidu Cloud, owned by Baidu, offers VPS prices lo...

Beyotta Network 512MB RAM KVM VPS Singapore M1 Simple Review

Details: Beyotta Network: $3.7/month/512MB memory...

ScalableNode: $35/year/512MB memory/50GB SSD space/2TB bandwidth/KVM/Los Angeles

ScalableNode, a newly established hosting provide...

LetBox: $15/year/512MB RAM/20GB SSD/unlimited traffic/OpenVZ/Dallas

LetBox has opened a new data center in Dallas, as...

Hosteons 512MB RAM 100Mbps Unlimited Bandwidth Los Angeles KVM VPS Review

Details: Hostons: $3/month/1GB memory/10GB SSD sp...

DataShack: $25/month/4G/500G/20T/5 IP/free DirectAdmin panel

DataShack is an American hosting company founded ...

Rootwelt: €4.95/month/1GB RAM/20GB SSD space/unlimited traffic/Xen/Germany

Rootwelt is a British hosting company, founded in...

GreenValueHost: $10.95/year/2 CPU/768MB/10GB/7500GB/3 IP/OpenVZ

GreenValueHost is a Vietnamese VPS host establish...