I have mad a custom ini files in /etc/php/7.0/mods-available. how can I enable it. I have tried php5enmod, and php7enmod. none worked for me.
Thank you.
I have mad a custom ini files in /etc/php/7.0/mods-available. how can I enable it. I have tried php5enmod, and php7enmod. none worked for me.
Thank you.
If you have several php versions intalled you can also use this syntax:
phpenmod -v 5.6 <modulename>
phpenmod -v 7.1 <modulename>
...
That worked in my case because I have 7.0, 7.1, 7.2 and 7.3 installed, but because of requirements I have to run my apache2 with 7.2.
phpenmod moduleName enables a module to php7 (restart apache after that sudo service apache2 restart)phpdismod moduleName disables a module to php7 (restart apache after that sudo service apache2 restart)php -m lists the loaded modulesphp -m - it's a content of /etc/php/yourPHPVersion/mods-availablephpenmod soapReload apache2 service apache2 reload or systemctl reload apache2
And you have a module enabled.
To disable the same module, run phpdismod soap, reload apache2 service apache2 reload