Apache2 enable .ini mod in /etc/php5/mods-available

Posted by GuiTeK on Server Fault See other posts from Server Fault or by GuiTeK
Published on 2014-08-20T16:12:32Z Indexed on 2014/08/20 16:23 UTC
Read the original article Hit count: 303

Filed under:
|

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?

© Server Fault or respective owner

Related posts about apache-2.2

Related posts about xdebug