NEW:  Define BASE_PATH by $_SERVER['DOCUMENT_ROOT']

Issue #3586