4

One can use the a2enmod [module] command to enable mods located in /etc/apache2/mods-available. But what about mods in /etc/php5/mods-available? When I try to enable a mod in this directory (eg. xdebug), I get the following error:

ERROR: Module xdebug does not exist!

Yet, /etc/php5/mods-available/xdebug.ini exists.

I understand a2enmod may work only with *.load files (it makes sense since *.ini files are just configuration files) but then what's the correct way of enabling modules located in /etc/php5/mods-available?

GuiTeK
  • 185
  • 1
  • 4

1 Answers1

8

You should use php5enmod to enable PHP modules.

Tero Kilkanen
  • 34,499
  • 3
  • 38
  • 58