Fixed bugs due to PHP conf.d directory moving in Ubuntu 14.04