Posted By

tregeagle on 02/21/12


Tagged

apache enablesite disablesite


Versions (?)

Apache2 Controls


 / Published in: Bash
 

Now I've written it down maybe I'll remember it...

  1. # enable site
  2. sudo a2ensite
  3.  
  4. # disable site
  5. sudo a2dissite
  6.  
  7. # enable an apache2 module
  8. sudo a2enmod
  9.  
  10. # e.g. a2enmod php4 will create the correct symlinks in mods-enabled to allow the module to be used. In this example it will link both php4.conf and php4.load for the user
  11.  
  12. # disable an apache2 module
  13. sudo a2dismod
  14.  
  15. # force reload the server:
  16. sudo /etc/init.d/apache2 force-reload

Report this snippet  

You need to login to post a comment.