In a previous posting you showed: /home/urbanimrich/ is your home directory.
Is there a public_html directory (where user accounts can serve web stuff from)? [or something like it] Providers don't have to do things the same way ... I see you are under VirtualMin ... which is a spin off of CPanel, Webmin etc. - but have no way of knowing how the provider has set up customers.
In VirtualMin, the provider can set things like apache's AllowOverRide variable to NONE - that means nothing you do with .htaccess files located anywhere will work.
Moodle code goes into some directory in your account that is already setup to allow web access. For example ... notice that says example ... /home/urbanimrich/public_html/ would contain the moodle code. If public_html directory doesn't exist, am willing to bet customer cannot create one manually. In those moodle files, one will find a config-dist.php file which one could use to create the config.php file that Moodle would normally create when using the web based installer. See notes in the config-dist.php file for how to use.
The moodledata directory, however, has to be manually created ***AND*** it cannot be in /home/urbanimrich/public_html/ *UNLESS* your provider has AllowOverRide turned on for options and is allowing that for all customer directories - your /home/urbanimrich/public_html/
Web based installer runs under apache user and doesn't have access levels to be able to create anything in your account.
The 'work-around' ***with some providers*** is to create the moodledata directory in /home/urbanimrich/public_html/ **where normally moodle code would complain about** AND to override that one would put an .htaccess file in moodledata that restricts just that directory from anyone browsing it.
That .htaccess file to contain:
order deny,allow
deny from all
Then copy the config-dist.php to config.php **AND** manually edit config.php filling out appropriate variables ... like paths, etc. DB user, DB, password, DB host, DB name, etc.. No one here would know specifics to those. Then hit the moodle site via browser to finish the install ... basically moodle installer code setting up the DB.
But here again *** IF provider is not allowing any overrides in user directories ***, .htaccess files are ignored.
We can see you are hosted on Linux ... and it does look like there are more PHP extensions that need installation before one could completely install Moodle.
See: https://docs.moodle.org/29/en/PHP#PHP_Extensions_and_libraries
At this point, I'd say that you need to communicate directly with the provider. We could guess all day long and still not get it right.
'spirit of sharing', Ken