i don’t think it is a matter of the changes inside the file. I just proved that the php.ini file is totally ignored from Nextcloud, well I should say at least the one in the loaded configuration.
I went on that path, made a copy of the file to php.bak and renamed the php.ini to php.old
Rebooted the server,
Ohh well, Nextcould loads with no issues and giving the same warnings which means it is loading some other default config I don’t know from which path…
I also did this other test where I copied the php.ini from /etc/php/7.2/fpm/php.ini to /user/local/bin hoping that it is looking from that path to load the ini file. No luck, still same issue.
Yes, theming app is disabled for me as well. Mainly because I use a specific dark theme rather than the default blue and white, which is a bit hard on my eyes. Very interesting about the opcache.ini file. Anything to make that message go away.
This does not make me happy at all. It actually confuses me even more… If Nextclould has a requirement for php then it should use its loaded configuration in the php.ini file. Apparently is not doing it. Does that mean that for opcache instructions it goes to /etc/php/7.2/fpm/conf.d/10-opcache.ini ? What else is missing from this file? We just added those 6-7 lines that the warning was bugging us but what else is missing? I say so because if you compare this file with the php.ini there’s a lot of instructions missing on it. How does this affect Nextcloud?
I guess for now I"ll just leave it like so and hoepfully it helps someone else.
Thanks to all of you for the feedback and suggestions
Not sure if it was related to this .ini file entries or now… I tested it again by disabling and enabling it and the folder icons do stay. This is good.
But when I create a file witht phpinfo() in the installation docroot php shows thet the opcode cache is running.
Is the test in nextcloud broken?
PHP ist 7.2.10 in CentOS 7
If only ONE of the settings does not correct, it will give you a warning about what it should look like. I roughly translated you message to opcache is not loaded, is that correct?
May be worth double checking the settings, because I think that is rather what NC is moaning about. To verify your settings you could use a small write up I made regarding the install of NC with PHP7.2 on CentOS7.5. It is here.
I had the same problem, and now I’ve finally solved it. I am managing my server with Plesk and in the PHP settings you can find the security option disable_functions which has the delault value opcache_get_status . That’s why Nexcould cannot check the opcache status and therefore claims opcache does not work correctly. If you remove the opcache_get_status entry, the opcache check is passed.
I am pretty sure that most of these issues are caused by this PHP security feature.
SOLVED!
I am using ubuntu 18.04 and PHP 7.2, I had to edit /etc/php/7.2/apache2/php.ini where I uncommented and modified the necessary:
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
Reloaded Apache and PHP and solved!
Doing the same in /etc/php/7.2/fpm/php.ini did not work at all
If you are using PHP FPM, you also need to change values there. With this you should be able to correct configure PHP Opcache. Also, you can use opcache gui tools to monitor performance and issues in this regard.