Enabling PHP7 Opcache

I recently upgraded to PHP 7.

I put this in /etc/php.d/opcache.ini

opcache.file_cache = /var/www/html/.opcache opcache.file_cache_only = 1 

and created a directory (with root privileges)

When I visit the site, nothing was created in the .opcache folder

a phpinfo(); reflects the changes I made to opcache.ini

How can I get PHP 7 Opcache to work optimally with WordPress?

update The problem was resolving the folder with witch. "I'm sure Apache can write to it.

What are the best settings for it? Safety and speed?

+3
source share
1 answer

I fixed this by making sure apache gets the entry in the folders I created. Once this was done, the httpd reboot worked.

+3
source

Source: https://habr.com/ru/post/1235113/


All Articles