Nextcloud OPCache warning
-
Probably this will help
https://help.nextcloud.com/t/warning-php-opcache-not-properly-configured/18637/10 -
Fedora 26 made it PHP 7.1
-
I've ignored it. But the last time I removed that message I had to install
php-opcache
and the add a10-opcache.ini
file to/etc/php.d/
with that info.# php-opcache sudo dnf -y install php-opcache # /etc/php.d/10-opcache.ini sudo tee /etc/php.d/10-opcache.ini <<EOF opcache.enable=1 opcache.enable_cli=1 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.memory_consumption=128 opcache.save_comments=1 opcache.revalidate_freq=1 EOF # Restart php-fpm sudo systemctl restart php-fpm
-
@black3dynamite said in Nextcloud OPCache warning:
sudo dnf -y install php-opcache
Yeah,
php-opcache
is not installed. that is annoying. Yet again NC fucks up these warning messages...I had big issues with these damned warning back when they were still ownCloud. Back then Josh or whoever spewed all kinds of bad info.
-
I too had that issue recently. Installed php-opcache and did a reboot. All errors went away.
-
I have been using it via Snap. It's quite nice
-
@aaronstuder said in Nextcloud OPCache warning:
I have been using it via Snap. It's quite nice
Snap on Ubuntu or Fedora?
-
@black3dynamite said in Nextcloud OPCache warning:
@aaronstuder said in Nextcloud OPCache warning:
I have been using it via Snap. It's quite nice
Snap on Ubuntu or Fedora?
Ubuntu, but Fedora should work too.
-
@aaronstuder said in Nextcloud OPCache warning:
@black3dynamite said in Nextcloud OPCache warning:
@aaronstuder said in Nextcloud OPCache warning:
I have been using it via Snap. It's quite nice
Snap on Ubuntu or Fedora?
Ubuntu, but Fedora should work too.
What's the current version of Nextcloud via Snap? Does it get updated pretty quickly?
-
@black3dynamite still 12 for now. This is my first update, so I am not sure.
-
I've discovered that you have to restart
php-fpm
instead ofhttpd
for the warning to go away.
https://help.nextcloud.com/t/warning-php-opcache-not-properly-configured/18637/15systemctl restart php-fpm
Also the
10-opcache.ini
file can be found in/etc/php-zts.d/
too. -
@black3dynamite That is why I just did a restart on the server. I restarted httpd and it did not change so a restart was the easiest for me.
-
@black3dynamite said in Nextcloud OPCache warning:
I've ignored it. But the last time I removed that message I had to install
php-opcache
and the add a10-opcache.ini
file to/etc/php.d/
with that info.# php-opcache sudo dnf -y install php-opcache # /etc/php.d/10-opcache.ini sudo tee /etc/php.d/10-opcache.ini <<EOF opcache.enable=1 opcache.enable_cli=1 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.memory_consumption=128 opcache.save_comments=1 opcache.revalidate_freq=1 EOF # Restart php-fpm sudo systemctl restart php-fpm
This worked for me. Thanks! Now I just have to get memcache working
-
@black3dynamite said in Nextcloud OPCache warning:
@aaronstuder said in Nextcloud OPCache warning:
@black3dynamite said in Nextcloud OPCache warning:
@aaronstuder said in Nextcloud OPCache warning:
I have been using it via Snap. It's quite nice
Snap on Ubuntu or Fedora?
Ubuntu, but Fedora should work too.
What's the current version of Nextcloud via Snap? Does it get updated pretty quickly?
12.0.4 as of today, we've been told.
-
Hello,
I run Nextcloud 13.01 on nginx and Centos 7 and was able to get the opcache warnings removed by adding the following to my /etc/php.d/opcache.ini file (below) then restarting php-fpm
opcache.enable_cli=1
opcache.max_accelerated_files=10000
opcache.save_comments=1
opcache.revalidate_freq=1 -
@chiefplato said in Nextcloud OPCache warning:
Hello,
I run Nextcloud 13.01 on nginx and Centos 7 and was able to get the opcache warnings removed by adding the following to my /etc/php.d/opcache.ini file (below) then restarting php-fpm
opcache.enable_cli=1
opcache.max_accelerated_files=10000
opcache.save_comments=1
opcache.revalidate_freq=1Awesome, thanks.