H
H
HighMan2021-10-28 16:29:52
linux
HighMan, 2021-10-28 16:29:52

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

Of course, I understand that you can remove links using rm, but this is somehow not correct
. Any advice on how to make phpdismod work?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
HighMan, 2021-10-29
@HighMan

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.

M
My joy, 2021-10-28
@t-alexashka

I didn't know there was such a tool. I usually comment on php.ini what is not needed and uncomment what is needed.

A
Alexander Karabanov, 2021-10-28
@karabanov

phpdismod simply removes the symlink from the mods-enabled directory .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question