Solution:
creating a php.ini in /var/www/vhosts/domain.com/httpdocs.
Also, did you edit wp-settings.php? This is the default:
if ( !defined('WP_MEMORY_LIMIT') ) define('WP_MEMORY_LIMIT', '32M');