VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: BoredBoss on May 12, 2022, 18:09:20 PM

Title: **SOLVED** VM4 Safe Path setup questions
Post by: BoredBoss on May 12, 2022, 18:09:20 PM
Where can I configure the safe path in VM4? There only seems to be a setup wizard, and that does not seem to be compatible with my VPS. The actual path on my server is /home/mysite.com/somename/public_html/, and the setup wizard only sees /home/mysite.com/somename. In actuality, I would like the path to be /home/mysite.com/somename/private_html/. Is this configurable, or do I need to edit something in the database?
Title: Re: VM4 Safe Path setup questions
Post by: pinochico on May 12, 2022, 18:23:23 PM
QuoteWhere can I configure the safe path in VM4?
Quotesetup wizard only sees /home/mysite.com/somename.

You know then why do you ask?  :o

administrator/index.php?option=com_virtuemart&view=updatesmigration
TAB - Safe Path Tools


QuoteThere only seems to be a setup wizard, and that does not seem to be compatible with my VPS.

Is not problem VM, but your VPS

QuoteIn actuality, I would like the path to be /home/mysite.com/somename/private_html/.

Sorry, then not will be Safe path => For safety reasons it is very important to create a folder in a path not accessible by an URL

But you can setup in:

administrator/index.php?option=com_virtuemart&view=config
TAB - Templates
Section - Media Files Settings
Safe Path - /home/mysite.com/somename/vmfiles/
Title: Re: VM4 Safe Path setup questions
Post by: BoredBoss on May 12, 2022, 21:21:05 PM
Thank you for the tip about where to enter the safe path; that worked.

Regarding the rest of your commentary, you are not correct.

First, the Setup Wizard shows what the current safe path is but does not allow you to configure it.

Second, there is nothing wrong with my VPS. The directory private_html is above the webroot, while public_html is in the root directory and contains the files for the website. If you try and visit the site and include "private_html", you are redirected to the root directory. In other words, all content in the private_html folder is not reachable via a web browser.

Thank you again for the tip about where to enter the safe path.