Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
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
add comment

2 Answers

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
1  
@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
add comment
  1. May be better substitute "restart" with "reload"?
  2. Nobody can tell "nothing will break" without knowledge of all details.
share|improve this answer
add comment

Your Answer

 
discard

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.