So few days ago I decided to start the upgrade of all my Freelance customers servers from Ubuntu 12.04 to Ubuntu 14.04 not just for security reasons but mostly because most of them are running Docker and everybody knows that docker runs much better on Ubuntu 14.04.
After finishing the upgrade everything went smoothly but few servers who weren’t running Docker but just Apache2 stopped working so I decided to start digging. After few hours of frustrations and cursing I managed to identify that Apache changed the way how it looks at a Vhost also PHP-5.5.9 changed the path for its modules so instead of looking after modules in
/etc/php5/conf.d now is looking after them in
/etc/php5/mods-available which caused many website to die slowly. Now the easy part was to identify the new path for the modules in PHP because during the upgrade PHP took care to actually move all the modules in the new path but forgot to enable them, so all you have to do after you made sure that everything is in place just type
php5enmod mcrypt for example and then restart apache and you are good to go.
As for apache this how the new config looks like: