Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Locating "secure" file folder outside Joomla install

Locating "secure" file folder outside Joomla install 1 year 1 day ago #47210

Hi,

My HikaShop configuration instructions call for the selection of an secure file folder [recommended best to be outside of joomla install]. How/where best to put this "Upload Secure" File Folder so that is outside of Joomla Installation folder... what would the url be if it is on my server but outside Joomla?

I am guessing from my Cpanel explorer that I would put the folder outside of the public_html folder, right? So then would the url be:

http://home/xxxxxx/upload_secure_file_folder ??

I need to get this url exactly right as i must enter it into the config page.

any help appreciated thanks
Scott
Please become a member of OSTraining to reply to this post.

Locating "secure" file folder outside Joomla install 1 year 1 day ago #47217

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3954
  • Thank you received: 134
  • Karma: 9
Hi Scott,

Depends on where your Joomla installation is. Is your Joomla site inside a directory of your server or is it located in the root? (Main section).
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Locating "secure" file folder outside Joomla install 1 year 1 day ago #47276

Hi Tessa,

I have never clearly understood the term 'root'. My live site is directly inside public_html [if I click on folder public_html in cPanel explorer then i see all of my joomla files]. My current test site is in a subfolder here. I think that the public_html folder is inside the "/home/xxxxxx" directory [where xxxxx is my specific name]

So to summarize I do not know the answer to your question!

Scott
Please become a member of OSTraining to reply to this post.

Locating "secure" file folder outside Joomla install 1 year 1 day ago #47280

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi Scott,

People throw those terms around rather liberally, so it's easy to get confused.

../ - above home is your your actual root directory on the server.
/home - is your home directory for server purposes
/xxxxx- is your user directory on your server
/public_html is your html directory and the place where you make files accessible to the public. That's where you place all your folders. You an install joomla there or in a subdirectory.

If your Joomla installation is in the public_html directory people often call that your site's root. So if your site is in public_html some people would refer to that as the root (for joomla) if your site was in a subdirectory, like public_html/joomladir, then joomladir would be your site's root.

Hika shop is telling you to put the directory outside of your site's root. Which would be above public_html inside your xxxxx directory. Some servers won't allow access there, in which case you can put it in a subdirectory in public_html and it will work, but won't be as secure.

Try putting it in the user directory xxxxx if you can and see if it works.

Ed
Please become a member of OSTraining to reply to this post.

Locating "secure" file folder outside Joomla install 11 months 3 weeks ago #47445

Thanks Ed for the explanation... much clearer now. So if I place a folder above public_html [i.e. root/home/xxxxx/folder], then then I wouldn't be able to access it via a url since it is not in the "public" part of my site?... or would I still be able to access it with a url and if so, what would it be?

Also I have live site in public_html, but will soon be switching over to new site which is currently in test folder: public_html/testfolder. Hikashop install is in testfolder for now but will move soon... It shouldn't matter that my install is currently in subdirectory vx public_html given that this secure folder needs to be placed outside of html to be most secure right? In otherwords, the location of this folder will not need to change when I move my test site to public_html, right?

Lastly, I need the correct url for this folder...and I am not sure how to confirm that I have the correct url... don't want to guess and have data go missing... Could you help me to understand how I can figure out what the url is from the file folder structure?... Please give me the correct url[if exist] for each of the below:

1 root
2 root/home
3 root/home/xxxxx
4 root/home/xxxxx/public_html [ www.mysite.com, right?]
5 root/home/xxxxx/securefolder

Thanks
Scott
Please become a member of OSTraining to reply to this post.

Locating "secure" file folder outside Joomla install 11 months 3 weeks ago #47482

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16855
  • Thank you received: 395
  • Karma: 57
Hi Scott,

You're welcome! We're glad to be of help!

1)
So if I place a folder above public_html [i.e. root/home/xxxxx/folder], then then I wouldn't be able to access it via a url since it is not in the "public" part of my site?
Yes, that's correct.

2)
It shouldn't matter that my install is currently in subdirectory vx public_html given that this secure folder needs to be placed outside of html to be most secure right? In otherwords, the location of this folder will not need to change when I move my test site to public_html, right?
That's generally correct, except for "xxxxx" where "xxxxx" is your specific name.

3) See #1.

Hope this helps!

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Locating "secure" file folder outside Joomla install 11 months 3 weeks ago #47652

Hi Nick,

Sorry, but I am still having trouble. Lets try a different approach: Please read recommendation by Hikashop Below:
________________________________________
FROM HIKASHOP CONFIGURATION INSTRUCTIONS:

Upload secure folder : Folder in which the products files will be uploaded to.
Please make sure this folder is writable otherwise HikaShop won't be able to upload your files in it. We recommend to put this folder outside your joomla installation folder. That way, if your website is hacked, you have more chances that the products files won't be changed. By default the folder is inside the Joomla installation folder but protected with an .htaccess to prevent access via the web. Only possible access will be via FTP,SSH or PHP.
__________________________________________

And refer to the attached picture. I have created a file folder called securefolder which is just outside of public_html: root/home/xxxxx/securefolder. Please tell me the correct path to type into the indicated HikaShop Configuration field so that HikaShop files will be correctly saved into this new file location. And how do you suggest that I test this to be sure it is correctly saving files there? I have also attached a pic of cPanel so you can be sure of this file location.


Thanks
Scott
Please become a member of OSTraining to reply to this post.

Locating "secure" file folder outside Joomla install 11 months 3 weeks ago #47674

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi Scott

Looks like it should be root/home/xxxxx/securefolder

To see if it works. Add some information and see if it shows up in the folder. If it doesn't then use the default folders that Hika shop uses.

Cheers,
Ed
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.