Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
sudo ln -s /etc/apache2/mods-available/deflate.load /etc/apache2/mods-enabled/
sudo service apache2 restart

Basically I just want to turn on gzip for Apache2.

I don't want to break anything!! Please, tell me that nothing will break when I run these commands.

share|improve this question
up vote 4 down vote accepted

you've almost got it, you want to do

cd /etc/apache/mods-enabled
sudo ln -s ../modes-available/deflate.load deflate.load

or you can use a2enmod deflate

share|improve this answer
I can just type a2enmod deflate, in my terminal? – Alex Mar 16 '10 at 22:04
And if you run into a problem do "sudo rm /etc/apache2/mods-enabled/deflate.load" followed by the restart line to return it to normal. – Chris Nava Mar 16 '10 at 22:05
@alex: You need to sudo, but yep that's all. – Zypher Mar 16 '10 at 22:06
Literally, typing "sudo a2enmod deflate" and everything will work? – Alex Mar 16 '10 at 22:32
@Alex: yep. oh sorry, forgot to put in my post - still need to do the reload/restart/graceful restart after that command. – Zypher Mar 16 '10 at 22:37
  1. May be better substitute "restart" with "reload"?
  2. Nobody can tell "nothing will break" without knowledge of all details.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.