# 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:** 5

<div class="post-metadata">

**Author:** ![antoine](https://help.nextcloud.com/user_avatar/help.nextcloud.com/antoine/32/6657_2.png) [@antoine](https://help.nextcloud.com/u/antoine)\
**Post date:** [April 11, 2021, 12:52pm UTC](https://help.nextcloud.com/t/running-php-gets-killed/113234/5 "2021-04-11T12:52:12Z")

</div>

Hi @wizkid

I had the same issue.

I fixed it by adding the line “apc.enable\_cli=1” to my /etc/php/7.4/cli/conf.d/20-apcu.ini. (See [NC 21 - No OCC Output after upgrade - #2 by tflidd](https://help.nextcloud.com/t/nc-21-no-occ-output-after-upgrade/110836/2)). Working fine now.

I had also tried to remove ‘memcache.local’ =\> ‘\OC\Memcache\APCu’, from Netxcloud config (See [OOM when running occ db:add-missing-indices after upgrade to NC 21 - #4 by Dampfklon](https://help.nextcloud.com/t/oom-when-running-occ-db-add-missing-indices-after-upgrade-to-nc-21/111562/4)). It worked but then I was getting a warning saying it would be better to have a cache enabled. So I rolled that change back.

---

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