One of the advantages of not using wildcard SSLs on multisite is each sub-site has its own NGINX configuration and its own PHP pool configuration file.
So, it becomes very easy to switch out the number of PHP workers allowed on each subdomain.
However, you can only make these changes on the command line. So:
- Log into your server as root or sudo using ssh
- Assuming that you’re using PHP 7.4, navigate to the 7.4 pool folder: “cd /etc/php/7.4/fpm/pool.d”
- In there you’ll see one file for each subdomain. Assuming you like to use the NANO editor, open one of the files: “sudo nano domainname.com“
- Edit the pm.max_children entry to set the maximum number of PHP workers for the domain.
- Use the CTRL-O key combination to save the file (assuming you’re using the NANO editor).
- Use the CTRL-X key combination to exit.
- Stop PHP: “systemctl stop php7.4-fpm”
- Start PHP: systemctl start php7.4-fpm”
Third Party Resources and Reading #
An Introduction To PHP-FPM Tuning – Published by Tideways
More Topics In Tips, Techniques & Education. #
- Increase WordPress Upload Size
- How To Access The Entire Server via sFTP
- How To Generate an SSH Key Pair
- Considerations For A Large Number Of Sites On A Single Server
- All The Possible WP-CONFIG.PHP Constants For Core WordPress
- Using MIGRATE GURU To Import Sites
- Force The Use of WWW On A Website
- Local & Remote Statuses On Servers
- CORS Example: Allow Access to Resources Between www and non-www Domains
- Import Sites
- Transferring Sites Between Servers
- Monit vs Netdata vs Monitorix vs GoAccess
- Resolving Common Issues With CloudFlare
- View Used Disk Space For A Site
- Customizing Front-end Styles
- How To Generate An SSH Key-Pair With Termius
- How To Change Your DNS Server
- Restoring From AWS S3 Into A New Site or Server
- Tweaking The Malware Scanner
- Handling Low Disk Space Conditions
- Useful OpenLiteSpeed Commands
- Alias Domains
- Custom SSL Certificates