# Running php gets killed

**URL:** <https://help.nextcloud.com/t/running-php-gets-killed/113234>\
**Category:** ℹ️ Support\
**Created:** [April 10, 2021, 5:19pm UTC](https://help.nextcloud.com/t/running-php-gets-killed/113234 "2021-04-10T17:19:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![wizkid](https://help.nextcloud.com/letter_avatar/wizkid/32/5_5575768a8748004e209b776fc1b2916d.png) [@wizkid](https://help.nextcloud.com/u/wizkid)\
**Post date:** [April 11, 2021, 3:41am UTC](https://help.nextcloud.com/t/running-php-gets-killed/113234/4 "2021-04-11T03:41:12Z")

</div>

I was using modular config system (there is memcache.config.php under config)  
I removed APCu entry from there, managed to get db indices and background jobs running again.  
PHP is not getting killed. I’ll figure out how to enable memory caching from other thread

Thanks  
[EDIT above this line]  
that fails as well, even tried 3072M

```
sudo -u www-data php -d memory_limit=3072M /var/www/nextcloud/occ db:add-missing-indices

PHP Fatal error: Allowed memory size of 3221225472 bytes exhausted (tried to allocate 20480 bytes) in /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php on line 133

```

On other hand I’ve removed APCu from config in my environment, however still stuck on indices part

---

_[View the full topic](https://help.nextcloud.com/t/running-php-gets-killed/113234)._
