Good Things to Share Uncategorized how to increase your web server limit at once

how to increase your web server limit at once

Summary of recommended “Sweet Spot” settings

Since you have 38GB of RAM, I recommend these global settings for your WordPress sites to ensure they are fast and stable:

Setting Recommended Value Why?
memory_limit 512M Prevents the “exhausted” error you saw.
upload_max_filesize 128M Allows you to upload larger themes/plugins.
post_max_size 128M Must match or exceed the upload limit.
max_execution_time 300 Gives backups and updates time to finish.

 

With 38GB of RAM, setting these limits is a “no-brainer.” It will make your sites much more stable and stop those annoying “2MB limit” warnings when you try to upload photos.

Since you have 60 sites, don’t do this manually. We will use the Virtualmin Command Line Interface (CLI) to update every single site in about 30 seconds.

Step 1: Run the Mass Update Commands

Open your Terminal in Virtualmin (or via SSH) and copy-paste these blocks. I have included commands for both PHP 8.3 and PHP 8.1 since your server uses both.

For PHP 8.3 Sites:

Bash

virtualmin modify-php-ini --all-domains --php-version 8.3 --ini-name memory_limit --ini-value 512M
virtualmin modify-php-ini --all-domains --php-version 8.3 --ini-name upload_max_filesize --ini-value 128M
virtualmin modify-php-ini --all-domains --php-version 8.3 --ini-name post_max_size --ini-value 128M
virtualmin modify-php-ini --all-domains --php-version 8.3 --ini-name max_execution_time --ini-value 300

For PHP 8.1 Sites:

Bash

virtualmin modify-php-ini --all-domains --php-version 8.1 --ini-name memory_limit --ini-value 512M
virtualmin modify-php-ini --all-domains --php-version 8.1 --ini-name upload_max_filesize --ini-value 128M
virtualmin modify-php-ini --all-domains --php-version 8.1 --ini-name post_max_size --ini-value 128M
virtualmin modify-php-ini --all-domains --php-version 8.1 --ini-name max_execution_time --ini-value 300

Step 2: Restart the PHP Engines

The changes won’t “kick in” until the PHP processes refresh.

  1. Go to Webmin > System > Bootup and Shutdown.

  2. Find php8.1-fpm and php8.3-fpm.

  3. Check both boxes and click Restart at the bottom.


Step 3: Verify the Change in WordPress

To make sure it worked:

  1. Log into any of your WordPress sites.

  2. Go to Media > Add New.

  3. You should now see “Maximum upload file size: 128 MB” instead of 2MB.


Step 4: Fix it for “Future” Sites (The Template)

To make sure site #61, #62, etc., all have these high limits automatically:

  1. Go to Virtualmin > System Settings > Server Templates.

  2. Click Default Settings.

  3. In the “Edit template section” dropdown, choose PHP Options.

  4. Find the box Additional PHP-FPM pool options and paste this:

    Plaintext

    php_admin_value[memory_limit] = 512M
    php_admin_value[upload_max_filesize] = 128M
    php_admin_value[post_max_size] = 128M
    php_admin_value[max_execution_time] = 300
    
  5. Click Save.

That’s it! Your taxi site should be back online now, and all 60 of your blogs are now “supercharged” with plenty of memory.

Are there any other specific errors showing up on your other sites, or is everything finally running smooth?

Related Post

Specialty Treatments | Juvenex Spa Luxury 24/7 Spa in the New York City, Juvenex Jade Journey General Admission; Seaweed Facial, Fango Mud FacialSpecialty Treatments | Juvenex Spa Luxury 24/7 Spa in the New York City, Juvenex Jade Journey General Admission; Seaweed Facial, Fango Mud Facial

Enhanced Beautification Program $235 150 minutes Includes: Juvenex Jade Journey General Admission Full Facial (Choice of Pumpkin/Cherry Peel, Vitamin C or Oxygen Blast) Brow Perfection Fresh Eyes Cooling Eye Treatment

Small company CNC prototype machining Fremont CA, Bay Area, prototype CNC parts FAST! Fremont CA Machine shop, Robotics prototype partsSmall company CNC prototype machining Fremont CA, Bay Area, prototype CNC parts FAST! Fremont CA Machine shop, Robotics prototype parts

Redwood City CA, CNC machine shop near me |Manual Milling and Lathe Inspection prototype. Prototype and Production CNC Milling drone, Electric cars, smart phones parts AJ SOLUTIONS  MACHINING STAINLESS STEEL

Diet coach portion control, macronutrients, mindful eating, food tracking, healthy recipes, Rodeo CA (510) 375-7227Diet coach portion control, macronutrients, mindful eating, food tracking, healthy recipes, Rodeo CA (510) 375-7227

Diet coach: dietary advice, nutrition counseling, healthy eating habits, personalized meal plans, portion control, macronutrients, mindful eating, food tracking, healthy recipes. Nick brings more to the table than just his