How Do I Change the Maximum Size of PHP INI in WordPress?

There are two ways to change the maximum size of PHP in WordPress: editing the php.ini file directly, or using the wp-config.

php file.

The php.ini file is located in the root of your WordPress installation, and is typically in the following location:

C:\xampp\htdocs\WordPress\

To change the PHP maximum size, open the php.ini file in a text editor and locate the following line:

max_execution_time = 300

Change the 300 to a lower number if you want PHP to run faster (or leave it at 300 if you don’t want to change it).

To change the PHP maximum size using the wp-config.php file, open the wp-config.php file in a text editor and locate the following line:

define(‘WP_MAX_MEMORY_LIMIT’, ‘256M’)

Change the 256M to a lower number if you want PHP to run faster (or leave it at 256M if you don’t want to change it).