Skip to content
Advertisement

Enable PHP Apache2

I can find the php5 mod in the mods-available directory, but I’m not sure how to get it into the mods-enabled directory.

Also, I just wanted to check that this is the way to enable php on my device…I know that PHP is installed, but another dev has disabled it (and is uncontactable)!

Advertisement

Answer

You can use a2enmod or a2dismod to enable/disable modules by name.

From terminal, run: sudo a2enmod php5 to enable PHP5 (or some other module), then sudo service apache2 reload to reload the Apache2 configuration.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement