updated compile for /app directories for apache & php