- Building E-commerce Sites with VirtueMart Cookbook
- John Horton
- 466字
- 2021-08-20 16:44:07
Fixing the safe path warning
We are making rapid progress. Remember the Safe path empty... warning? Here we will fix it.
Getting ready
Log in to Joomla! and go to the VirtueMart control panel.
How to do it...
This will only take a minute:
- Click on the drop-down menu titled Configuration. Immediately below is a Configuration link, click on that too. The following screenshot shows the warning that appears at the top of the page:
- The safe path warning requires us to make a folder outside of the publicly accessible web folder, where VirtueMart can store sensitive data (credit card info, text messages from previous partners, and so on).
Note
We are going to do what it says on the warning but we will choose our own folder name for a bit of added security. No website can be made hacker proof. But if we move sensitive data to an area of your web space that cannot be accessed directly or via a simple URL, then we force a would-be hacker to work harder to get that data. Once these steps are complete VirtueMart will use the new folders.
- Create a new folder in the location suggested. It should be the folder up from the working Joomla! install. So the new folder will be in the same folder as the Joomla! install folder but not in the Joomla! install folder itself.
- Name the folder something memorable but not obvious such as
vm_stuff
. Not too intriguing but clear to you. - Inside the
vm_stuff
folder create another folder and call itinvoices
. - Now we will tell VirtueMart where it is and what we called it. The actual path to this folder will vary depending upon your web host and your specific situation. So this is a consistent way to describe how to get your path accurately.
- In your Joomla! control panel click on Site | Global Configuration and select the System tab. You will see a box labeled Path to Log Folder. The following screenshot shows the path that we need:
- On the end of the path is your
joomlafolder/logs
. Copy the path excluding yourjoomlafolder/logs
. Make sure to leave the trailing/
on in the end. Now, we will paste it into the appropriate place in VirtueMart and add thevm_stuff
at the end. - Navigate to Components | VirtueMart, then from the left-hand menu, select the Configuration and choose the Templates tab. Scroll near the bottom of the screen until you see the following screenshot:
- Paste the path you copied earlier and add the name of the folder you created onto the end of the trailing
/
. Click on Save. The warning will be gone.
How it works...
By defining the safe path, VirtueMart can now put certain information a little bit further out of harm's way.
推薦閱讀
- 光網(wǎng)絡(luò)評(píng)估及案例分析
- 數(shù)字烏托邦
- HTML5 Game development with ImpactJS
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見(jiàn):2015年中國(guó)互聯(lián)網(wǎng)安全大會(huì)文集
- 電力物聯(lián)網(wǎng)工程技術(shù)原理與應(yīng)用
- 區(qū)塊鏈輕松上手:原理、源碼、搭建與應(yīng)用
- 智慧光網(wǎng)絡(luò):關(guān)鍵技術(shù)、應(yīng)用實(shí)踐和未來(lái)演進(jìn)
- Microservice Patterns and Best Practices
- Learning Windows 8 Game Development
- Hands-On Microservices with Node.js
- 現(xiàn)場(chǎng)綜合化網(wǎng)絡(luò)運(yùn)營(yíng)與維護(hù):運(yùn)營(yíng)商數(shù)字化轉(zhuǎn)型技術(shù)與實(shí)踐
- Enterprise ApplicationDevelopment with Ext JSand Spring
- 工業(yè)以太網(wǎng)技術(shù):AFDX/TTE網(wǎng)絡(luò)原理、接口、互連與安全
- 網(wǎng)絡(luò)分析技術(shù)揭秘:原理、實(shí)踐與WinPcap深入解析
- 賽博空間簡(jiǎn)史