V
V
Vasya2018-05-07 08:45:41
PHP
Vasya, 2018-05-07 08:45:41

Is it enough to restart apache/php services to disable opcache?

In the .ini file I change opcache.enable=0 and distort the service. Result - opcache is still enabled, advise something :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2018-05-07
@karminski

Restarting the PHP daemon is enough. If it doesn't work, check if the PHP config you corrected. How do you restart PHP?

A
Andrey, 2018-05-07
@VELIK505

in the root of the site, fill in 1.php with the content:

<?php
phpinfo();
phpinfo(INFO_MODULES);
?>

there you will see which php.ini is being used. in it and turn off the opcache, then /etc/init.d/php-(fpm)(7.0/1) restart
But you correctly noted that even in this situation, the data may remain in opcache here you can download index.php from here https:/ /github.com/amnuts/opcache-gui and clean up (by the way, a convenient admin panel for opcache).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question