How to Increase PHP memory limit

PHP memory limit sometimes makes it problem to upload. please check way to increase your memory limit.

Way 1:  Modify php.ini

Search “memory_limit” in your php.ini, and change the value of it. If no “memory_limit” found, add the following line at the end of php.ini
memory_limit = 2568M ;
Save file. And restart Apache.

Way 2: .htaccess

Find the “.htaccess” in your root directory of the specified domain
php_value memory_limit 256M;

Way 3: Change Memory At Runtime

Right, PHP memory limit could be changed at runtime. Via this way, you have no need to change and configuration of your server environment.

For WordPress Users

In your wp-config.php, find or add the following line:
define(‘WP_MEMORY_LIMIT’, ‘256M’);

For Drupal Users

For drupal, you can edit sites/default/settings.php. Locate the PHP settings section and add the following line at the end of that section:
ini_set(‘memory_limit’, ‘256M’);

For other frameworks
ini_set(‘memory_limit’, ‘256M’);