added logs and basedir, apache changed and fixes