Answer the question
In order to leave comments, you need to log in
How to find and replace a value in a file with a command in the terminal?
I almost never worked with the terminal, for convenience I want to create a script to disable opcache when necessary and enable it back!
The task is as follows:
There is a file php.ini
in it, you need to change the value in the line opcache.enable=0
to opcache.enable=1
After restart php
And if you can set the condition
if (opcache.enable==0){ opcache.enable=1; }else{ opcache.enable=0;}
that would be absolutely great! Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question