I have a free account on a web host so it does not allow me to put data root directory outside my host. so thats why i tried googling it and i found this
http://docs.moodle.org/20/en/Creating_Moodle_site_data_directory
where its written
But if you must have it in the web directory (and you are using Apache AND the web server configuration allows .htaccess files to restrict access to directories) then protect it by creating a file in the data directory called .htaccess, containing these lines:
I did protect it with .htaccess
and also chmod the upload directory
but still the script installer gives me that dataroot directory is not secure what do i do please help.
My moodle directory is /moodle/
and dataroot directory is /moodle-uploads/uploads/
where i chmodded both moodle-uploads and uploads folder and also put the .htaccess file in moodle-uploads folder with the contents below but still not secure. Please help
order deny,allow deny from all