Magento – Resolve Memory Limit Issue When Uploading Product Image

errormagento-1.7magento-1.8magento-1.9memory

I just setup a testing installation yesterday. I ran the server-check file and all was fine. Installation went smoothly.

The image upload doesn't work in the Backend! After uploading any image, even as small as 1kb, the error "Memory limit has been reached." appears and the image is not stored.
The memory limit for PHP is set very high (several GiB or even -1 for unlimited)

Best Answer

You can try to increase de memory limit of your php:

Open /etc/php5/apache2/php.ini in a text editor

Change memory_limit to:

memory_limit = 256M

And you can check creating a file info.php

<?php phpinfo(); ?>

Check the variable: memory limit