Hello Community,
I have a site at http://www.computerquestionhelp.com computer/it related content. I have some common missing drivers that can be downloaded directly from public published blogs on my site. My goal is to make it so only registered users can download these files, while allowing the public to still see the blog.
I have been told to adjust the file system to private in the administrator settings. However, the default path looks like this:
File system path:
sites/default/files
Easy enough. However, I was told to create a directory within my home directory. Thus, making it non accessible to the public.
Example: /home/username/private_driver_files
My only concern is that it appears that if I insert the path listed above it won't work. Why do I think this? This is because Drupal appears to be using the domains root folder, as the root folder of my web account.
How can I instruct drupal to handle files within my home directory? I was thinking of something similar to this, but I'm sure I'm incorrect:
This is the current exact path: /home/username/public_html/computerquestionhelp.com/sites/default/files when it's left set to public with the standard path.
I was thinking I could do this but I doubt it will work:
../../private_driver_files
That path will take it back (2) directories which is before my "public_html" folder.
What is the correct way of doing this? Does Drupal under stand full paths if I were to use one? Like: /home/username/private_driver_files ?
Thanks for your time!
Comments
Whelp, I tried using both of
Whelp, I tried using both of these:
../../registered_user_driver_files
and
/home/abelleba/registered_user_driver_files
Nether of them worked and it said it's not writable by group. I chmoded the folder 755 so I don't understand that error. 777 not allowed on the server cause of SuExec
Thanks again,
bump
bump