Hey Hajar! I found some replies regarding to your question. Both are explaining how to install moodle under cPanel and WAMP server.
For cPanel: https://moodle.org/mod/forum/discuss.php?d=102472#p452471
For WAMP: https://moodle.org/mod/forum/discuss.php?d=81386#p360615
Hope this information is useful!
For cPanel: https://moodle.org/mod/forum/discuss.php?d=102472#p452471
For WAMP: https://moodle.org/mod/forum/discuss.php?d=81386#p360615
Hope this information is useful!