Re: How to set up downloadable products
I'm with hostmonster...public_html folder was set to 755, home/myname/mystore/file1/file2/mydownloads were all set to 755, and redirect was turned on in admin. 755 was used because the store worked fine with these settings when the download folder was located in the store folder.
Re: How to set up downloadable products
Well, I tried changing the config files anyway....didn't work.
The Zencart installation page showed up when I tried to access my cart.
Restored my config files and now have the download folder in my store again. It will work for now but I would really like to protect music files from public_html.
I'm stuck for now...until I get some feedback.
Apparently, the database did not like what I did...my page layout settings are back to the original layout.
Should I restore everything from backups created yesterday?
Nevermind, that was probably done when I set up my new template...
Re: How to set up downloadable products
Good grief, you're making this WAY harder than it needs to be.
If your store is in /home/USER/public_html/store
then your downloads are currently in /home/USER/public_html/store/download
and you want to move the "download" folder up into the same place where public_html is located ...
so that means you want the download dir to be /home/USER/download
Re: How to set up downloadable products
The grief is in the tutorial directions...and if I'm not mistaken, that is the folder location I tried to create and link to.
QUOTE FROM MY POST:
When I change the download line to read:
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/home/myname/mystore/mydownloads/');
I receive an error on my store front that says the download folder can't be found at:
/home/myname/public_html/mystore//home/myname/mystore/mydownloadfolder/
Here's a copy of the directions from the tutorial...
Use your FTP program to move your "download" folder outside your webroot. Perhaps drag-and-drop it to a level "above" your public_html folder. The method you choose for moving or creating this folder will depend on your hosting account and the tools available to you for moving folders.
Usually the "download" folder is located inside your store area, for example:
- /home/my_user_name/public_html/mystore/download
You want to move it "above" your public_html folder, something like this:
- /home/my_user_name/download
If I follow your directions, my download folder will still by in the public_html folder...correct me if I'm wrong.
Thanks.
Re: How to set up downloadable products
...it's tired and I'm late....I'll see if I can make more sense tomarrow....
I appreciate your help.
Re: How to set up downloadable products
There wasn't a username folder in the home directory...I thought that was an understood folder and one didn't need to physically reside on the server. :oops:
In the admin / catalog / downloads area, It took 5 recursives,
../../../../../username/download/personal folder
to get the link to work. I had only recursed 4 times when trying previously.:oops:
Appreciate your help.
Re: How to set up downloadable products
Quote:
Originally Posted by
jestcoun
There wasn't a username folder in the home directory...I thought that was an understood folder and one didn't need to physically reside on the server. :oops:
In the admin / catalog / downloads area, It took 5 recursives,
../../../../../username/download/personal folder
to get the link to work. I had only recursed 4 times when trying previously.:oops:
Appreciate your help.
Actually, the username is understood.
After removing the physical folder and moving the download folder to the root, everything works fine.
Re: How to set up downloadable products
:frusty:Okay, now I'm really confused. :wacko:
My download files are linking (green dot) in the admin functions.
But I'm getting this error when I open up my shopping cart:
Warning: The downloadable products directory does not exist:
/home/jestcoun/public_html/store//home/jestcoun/download/. Downloadable products will not work until this directory is valid.
I'm right back to where I started from...
Original post:
First, if I go by this tutorial:
https://www.zen-cart.com/tutorials/i...hp?article=280,
it will not work because this line:
define('DIR_FS_CATALOG', '/home/myname/public_html/store/');
says the store folder is the top folder in the structure.
Well...I'm reloacting the download folder higher in the folder chain, so this will not work.
When I change the download line to read:
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/home/username/download/');
I receive an error on my store front that says the download folder can't be found at:
/home/jestcoun/public_html/store//home/jestcoun/download/
The double file structure and double slashes are not a typo...
This leads me to beleive I need to change my FS CATALOG to a higher level.
End of Original Post.
Do I need to do a fresh install of zencart without going through Fantastico or Simplescripts?
I really believe the config file WS and FS structures are limiting me from accessing the downloads...correct me if I'm wrong.
Please help.
Re: How to set up downloadable products
I'll just stick to the original setup...this just is not working for me.
I'll keep an eye on the thread and maybe something will click somewhere down the line.
Re: How to set up downloadable products
See the double slashes:
Quote:
/home/jestcoun/public_html/store//home/jestcoun/download/. Downloadable products will not work until this directory is valid.
Notice that they have duplicated the home path as part of that error?
That means you most likely have something wrong in your configure.php file(s) ...