PvP Server Kiralama & Oyun Sunucuları
0 Giriş Yap Kayıt Ol

Increasing "Max Input Variables" and "Memory Limit" on Websites (php.ini)

Yazdır

How to Increase PHP Memory (Memory Limit) and Input Values ​​with cPanel and php.ini?

When installing an advanced plugin on your website, uploading a large theme demo, or trying to update thousands of products on your e-commerce site at once.Fatal error: Allowed memory size of ... bytes exhaustedorMax Input VariablesYou may receive a warning. These errors indicate that the hosting package that hosts your website is stuck in PHP software limits. You can use the following methods to increase the limits.

Method 1: Using cPanel "MultiPHP INI Editor" (Easiest Way)

If cPanel is installed in your corporate hosting package, you can increase the limits from the panel without dealing with codes:

  1. Log in to cPanel and click under Software. MultiPHP INI Editor enter the menu.
  2. On the page that opens, select the domain name of your website you want to operate.
  3. Find the following settings and increase their values and press the "Apply" button:
    • memory_limit: It is the maximum amount of RAM your site can draw from the server.256Mor512Mdo it.
    • max_input_vars: This is the limit of forms/data that can be sent at once.3000or5000Update as .
    • upload_max_filesize: It is the maximum file size that can be uploaded from the site.128Myou can.

Method 2: Enforcing Limits with .htaccess File

If you do not have permission to edit PHP on your server, you can do the same..htaccessYou can also trigger it by adding the following codes to the bottom line of your file:

php_value memory_limit 512M
php_value max_input_vars 5000
php_value upload_max_filesize 128M
php_value post_max_size 128M

This article is specially prepared for PvPServer.

Bu cevap yeterince yardımcı oldu mu?

Oyla

overlay spinner