I'm building a bootstrap.sh file for a Vagrant setup and I need a simple way (bash command if possible) to enable a few extensions of PHP but when I run phpenmod it enable the extension for /etc/php/7.x/cli/php.ini but I want to enable in /etc/php/7.x/apache2/php.ini.
What should I do?