# Nextcloud OPcache

**URL:** <https://dietpi.com/forum/t/nextcloud-opcache/4476>\
**Category:** Troubleshooting\
**Created:** [21 September 2020 08:19 UTC](https://dietpi.com/forum/t/nextcloud-opcache/4476 "2020-09-21T08:19:24Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [23 September 2020 15:08 UTC](https://dietpi.com/forum/t/nextcloud-opcache/4476/21 "2020-09-23T15:08:30Z")

</div>

strange. ls: cannot access?

ls -Al /etc/php/7.3/fpm/conf.d/99-dietpi.nextcloud.ini  
ls: cannot access ‘/etc/php/7.3/fpm/conf.d/99-dietpi.nextcloud.ini’: No such file or directory

but 😮  
root@DietPi:/etc/php/7.3/fpm/conf.d# ls

10-mysqlnd.ini 20-curl.ini 20-iconv.ini 20-phar.ini 20-sysvmsg.ini 20-zip.ini  
10-opcache.ini 20-dom.ini 20-igbinary.ini 20-posix.ini 20-sysvsem.ini 98-dietpi.ini  
10-pdo.ini 20-exif.ini 20-intl.ini 20-readline.ini 20-sysvshm.ini 99-dietpi-nextcloud.ini  
15-xml.ini 20-fileinfo.ini 20-json.ini 20-redis.ini 20-tokenizer.ini  
20-apcu.ini 20-ftp.ini 20-mbstring.ini 20-shmop.ini 20-wddx.ini  
20-bcmath.ini 20-gd.ini 20-mysqli.ini 20-simplexml.ini 20-xmlreader.ini  
20-calendar.ini 20-gettext.ini 20-pdo\_mysql.ini 20-sockets.ini 20-xmlwriter.ini  
20-ctype.ini 20-gmp.ini 20-pdo\_sqlite.ini 20-sqlite3.ini 20-xsl.ini

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [23 September 2020 15:13 UTC](https://dietpi.com/forum/t/nextcloud-opcache/4476/22 "2020-09-23T15:13:09Z")

</div>

A typo, - instead of . 😉. Okay so it is enabled.

Can you run and paste the output of: php -i | grep opcache

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [23 September 2020 15:18 UTC](https://dietpi.com/forum/t/nextcloud-opcache/4476/23 "2020-09-23T15:18:28Z")

</div>

ooo, typo also here 🤣

php -i | grep opcache  
/etc/php/7.3/cli/conf.d/10-opcache.ini,  
opcache.blacklist\_filename =\> no value =\> no value  
opcache.consistency\_checks =\> 0 =\> 0  
opcache.dups\_fix =\> Off =\> Off  
opcache.enable =\> On =\> On  
opcache.enable\_cli =\> Off =\> Off  
opcache.enable\_file\_override =\> Off =\> Off  
opcache.error\_log =\> no value =\> no value  
opcache.file\_cache =\> no value =\> no value  
opcache.file\_cache\_consistency\_checks =\> On =\> On  
opcache.file\_cache\_only =\> Off =\> Off  
opcache.file\_update\_protection =\> 2 =\> 2  
opcache.force\_restart\_timeout =\> 180 =\> 180  
opcache.huge\_code\_pages =\> Off =\> Off  
opcache.interned\_strings\_buffer =\> 8 =\> 8  
opcache.lockfile\_path =\> /tmp =\> /tmp  
opcache.log\_verbosity\_level =\> 1 =\> 1  
opcache.max\_accelerated\_files =\> 10000 =\> 10000  
opcache.max\_file\_size =\> 0 =\> 0  
opcache.max\_wasted\_percentage =\> 5 =\> 5  
opcache.memory\_consumption =\> 128 =\> 128  
opcache.opt\_debug\_level =\> 0 =\> 0  
opcache.optimization\_level =\> 0x7FFEBFFF =\> 0x7FFEBFFF  
opcache.preferred\_memory\_model =\> no value =\> no value  
opcache.protect\_memory =\> Off =\> Off  
opcache.restrict\_api =\> no value =\> no value  
opcache.revalidate\_freq =\> 1 =\> 1  
opcache.revalidate\_path =\> Off =\> Off  
opcache.save\_comments =\> On =\> On  
opcache.use\_cwd =\> On =\> On  
opcache.validate\_permission =\> Off =\> Off  
opcache.validate\_root =\> Off =\> Off  
opcache.validate\_timestamps =\> On =\> On

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [23 September 2020 15:44 UTC](https://dietpi.com/forum/t/nextcloud-opcache/4476/24 "2020-09-23T15:44:06Z")

</div>

So for CLI all settings are in fact as they should be. Only other idea, does something in Lighttpd override it?

```nohighlight
grep -r opcache /etc/lighttpd/

```

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [23 September 2020 15:53 UTC](https://dietpi.com/forum/t/nextcloud-opcache/4476/25 "2020-09-23T15:53:19Z")

</div>

grep -r opcache /etc/lighttpd/  
/etc/lighttpd/conf-available/99-dietpi-nextcloud.conf: setenv.add-environment += ( “PHP\_ADMIN\_VALUE” =\> “opcache.memory\_consumption=128” )

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [23 September 2020 15:59 UTC](https://dietpi.com/forum/t/nextcloud-opcache/4476/26 "2020-09-23T15:59:56Z")

</div>

Ah I already had that in mind, we added the memory consumption setting for the Nextcloud subdir only in the past, but that does not work as I thought that time, so we now add it PHP-wide.

Now if why if would cause the warning (as the value still is what it should be) but high change that solves it:

```nohighlight
sed -i '/opcache/d' /etc/lighttpd/conf-available/99-dietpi-nextcloud.conf
systemctl restart lighttpd

```

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [23 September 2020 16:11 UTC](https://dietpi.com/forum/t/nextcloud-opcache/4476/27 "2020-09-23T16:11:02Z")

</div>

We won! 🕶

uf, it was a great journey, Tnx!!

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [23 September 2020 16:29 UTC](https://dietpi.com/forum/t/nextcloud-opcache/4476/28 "2020-09-23T16:29:43Z")

</div>

That directive is now actively patched our with next DietPi update 🙂: [https://github.com/MichaIng/DietPi/commit/482666a15791bfbc5cbaa4a5069c2b986525feff](https://github.com/MichaIng/DietPi/commit/482666a15791bfbc5cbaa4a5069c2b986525feff)

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [23 September 2020 16:34 UTC](https://dietpi.com/forum/t/nextcloud-opcache/4476/29 "2020-09-23T16:34:24Z")

</div>

+1 😉

[Previous page](https://dietpi.com/forum/t/nextcloud-opcache/4476.md?page=1)
