How to enable Apache modules
Clone this wiki locally
MAMP PRO. On the main screen, click the
Apachetab and ensure that all the required modules are 'checked', indicating they are enabled.
MAMP. Locate the
httpd.conffile, which is typically found in
/Applications/MAMP/conf/apache/httpd.conf. Open the file in a text editor and uncomment all of the required modules. Once you have done so, reset MAMP.
XAMPP. Follow the same steps as for MAMP, but look for
These instructions should work on any distribution where
apt-get has been
used to install Apache.
Open up a terminal and type the following command. Enter your password when prompted.
sudo a2enmod setenvif headers deflate filter expires rewrite include
Restart apache by using the following command so the new configuration takes effect.
sudo /etc/init.d/apache2 restart
You've got a couple of options that depend on how you installed Apache.
WampServer. This is by far the simplest option. If you have installed WampServer just click on the icon in the task bar, hover over the Apache section in the menu that comes up and then hover over the modules section. You will be presented with a list of modules. Simply click on a module name to enable it (or disable it if it is already enabled). A check mark next to a module indicates that it is enabled. WampServer will automatically restart the Apache service after you enable a module.
httpd.conf. This assumes that you have manually installed Apache. You will need to locate the
httpd.conffile which is normally in the
conffolder in the folder where you installed Apache (for example
C:\apache\conf\httpd.conf). Open up this file in a text editor. Near the top (after a bunch of comments) you will see a long list of modules. Check to make sure that the modules listed above are not commented out. If they are, go ahead and uncomment them and restart Apache.
That's it, you're done!