Configuration OpCache

I apologize for my bad English I hope to be understandable
PHP OpCache is not configured correctly. For better performance we recommend using the following settings in php.ini:

I have to configure OpCache
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

I move to the directory

etc / php / 7.0 / apache2

I run nano php.ini and edit the parameters

but when I run nextcloud it does not accept the changes by letting me see the message that tells me to change the 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 they are already modified :face_with_head_bandage:

The second screen’s output shows ;opcache.enable=1 which means the line is commented. You need to remove the ; in front of all the parameters listed in order to “activate” them.

Also, have a look at this thread as there are multiple answers in there already.

1 Like