23 January 2014

Removing the /etc/apache2 directory on Ubuntu - the revenge!

Ok, so you decide in your infinite wisdom to remove the /etc/apache2 directory altogether after a failed Chef cookbook attempt to create some new configuration against Apache 2.4 on Ubuntu 13.10 when the cookbook turns out only to support Apache 2.2.

That took some serious searching on the web in order to get Ubuntu to reinstate all configuration

Thank you Jorge Castro & ajmitch!

sudo apt-get -o DPkg::Options::="--force-confmiss" --reinstall  install apache2

Anyway, I also fixed up the apache2(.2) cookbook so that it can now run for 2.4. But I do disclaim all liability/warranty - it was simply a quick-fix using new syntax and constructs where warranted...


No comments: