Fixes for ubuntu apache2