Phoca Extensions
Free extensions for Joomla! CMS

Saving files outside public_html folder

Category: Phoca Download Component

Files, which can be downloaded from your site, can be saved outside the public_html folder. This is needed e.g. in case you want to allow downloading for registered users only. In such case you should set the access right of the files to registered users and you should save the files outside the public_html folder, so it cannot be accessed by not registered users.

Go to Components » Phoca Download » Settings and set the absolute path in Absolute Path input field.

If your site is running on linux server and your path to public_html folder is e.g.:
  • /usr/home/your-username/public_html

then your path will look like the following path:

  • /usr/home/your-username/

If you are using absolute path for saving files which should be downloadable by Phoca Donwload, you cannot set the Direct Link parameter for downloading files. Because files outside public_html cannot be accessed through direct link.

Don't forget to enable FTP layer on your Joomla! site.

 

 

Phoca Forum - Latest Topics