If you don’t want to mess with the PHP.ini file, then you can go for this method. In this, you won’t be needing to create any extra files in your Directory.
Just Adding define('WP_MEMORY_LIMIT', '64M');
in your ‘wp-config.php’ file would increase your PHP Memory Limit to 64 MB. See Below:
/* Add any custom values between this line and the "stop editing" line. */
define('WP_MEMORY_LIMIT', '4096M');