Thank you for the suggestion, i want to elaborate the case 1. I'm using moodle bitnami stack 3.7.2-1 and it was working fine until i enabled web services
Enable web services
Web services enable other systems to log in to this Moodle and perform operations. For extra security this feature should be disabled unless you are really using it.
please tell me how to disable cause now the homepage or say the login page ( main page) is not getting open