Answer the question
In order to leave comments, you need to log in
How to make phpdismod work?
Hello colleagues!
The question is extremely stupid. You need to disable a few php modules. It would seem, what could be easier?
phpdismod opcache
or even
phpdismod -v ALL opcache
but does not work!
phpdismod opcache
ls /etc/php/7.3/mods-available/opcache*
/etc/php/7.3/mods-available/opcache.ini
phpdismod -v ALL opcache
[email protected]:/etc/php/7.3/mods-available# ls /etc/php/7.3/mods-available/opcache*
/etc/php/7.3/mods-available/opcache.ini
Answer the question
In order to leave comments, you need to log in
The issue was resolved. In agony)
The fault was my very superficial knowledge of the PHP settings and ... stupid script phpdismod.
phpdismod works and says NOTHING. He did something, he didn't - xs.
Turns out he does! Just not quite as expected.
I thought that he should do something with /etc/php/7.x/mods-avilable, but he actually does not touch this directory. It just cuts symbolic links, for example in cli.
I didn't know there was such a tool. I usually comment on php.ini what is not needed and uncomment what is needed.
phpdismod simply removes the symlink from the mods-enabled directory .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question