Php.ini settings not being pulled

Hello,

it seems my settings from PHP.ini are not being pulled by my nextcloud installation.

I have placed a PHP.ini with following content in the folder
/www/nextcloud/dev/nextcloud

PHP.INI:
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

But anyway my nextcloud admin site reports me:
“PHP Opcache is not correctly enabled"
Add following settings to PHP.INI:
…”
(Actually that’s where I have them from).

I have checked that the right PHP is taken by placing a little script under
www/nextcloud/dev/nextcloud/phpinfo.php

This just calls phpinfo();

When being retrieved, this tells me:
PHP Version: 7.1.2
Configuration File (php.ini) Path : /usr/local/pd-admin2/php-7.1/lib
Loaded Configuration File: /home//www/nextcloud/dev/nextcloud/php.ini

So this looks quite OK for me.

Any ideas how to make some progress? Nothing in the NC logs…

Do I have to place my php.ini into a different folder? Which one…

Regards, Prof

Normally on a Ubuntu installation the php.ini file would be /etc/php/7.0/apache2/php.ini and would already exist.

Since you don’t say anything about your system we can only guess…

Hello JasonBayton,

thanks for your reply.

“uname -a” says:
Linux 4.4.27-x86_64-jb1 #4 SMP Tue Jun 6 14:41:09 CEST 2017 x86_64 x86_64 x86_64 GNU/Linux

“lsb_release -a” tells me:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

It’s not my server, I just have some webspace and ssh access there, no root, no superuser.

I was told to jsut create a php.ini with the necessary settings in the folder where I need it and thus I’ve created it in the nextcloud root folder. And also there I have place the phpinfo.php which tells me the setting is being pulled.

Regards
Prof