WordPress comes with a default memory limit of 32MB which can be to less if you run the automatic updates. As discussed here and here there are different ways to change the configuration. Though, for us it only works when we change the memory_limit in the following path:
/etc/php5/cgi/php.ini