Setting safe path in VirtueMart

VirtueMart uses a folder for storing invoices and downloadable files you eventually offer for sale. You must configure the path to this folder referred to as ‘Safe Path’. For security reasons, it is recommended that this folder is outside of the public website folders.

253-safe-path-lookup

To set up your ‘Safe Path‘, first create a folder outside of your Joomla root (public html) directory using your ftp program. In this example we’ve created a folder named ‘vmfiles’ to be used as ‘Safe Path‘. When this is not possible create a folder in the ‘administrator’ folder of joomla.

Note that on some shared hosts, especially the low cost ones, you will not be able to set or access a folder below web root.

253-safe-path-folder

Next you need to find out your server path to the folder. An easy way is to look at your Joomla Global Configuration > Server tab > Server Settings ‘Path to Temp Folder’. Just copy the ‘/html/tmp’ (where ‘html’ is the public html folder) at the end and substitute it with the folder name you predefined as your ‘Safe Path‘ folder, in our example ‘/vmfiles’.

 

253-safe-path-folder-vm

 

In VM Configuration > Templates > Media¬†file settings enter the full server path to your folder into the ‘Safe path‘ field. Some servers require a leading slash (i.e: /home/…). Do not create the ‘/invoices/’ directory. VirtueMart will do that for you. And do not use a relative path, it will not work.

 

Leave a Reply

Your email address will not be published.

*