New Zenner
- Join Date:
- Jun 2014
- Location:
- Las Vegas, Nevada, United States
- Posts:
- 47
- Plugin Contributions:
- 0
403 error and Symlink Folders with downloadable products
I am having trouble with downloadable products using ZenCart 1.5.2 When I attempt to download via the download button I get a 403 forbidden error. ANY help would be appreciated. Below is what I have tried and what I am thinking to help clear things up for anyone wishing to lend a hand.
I have moved and renamed my downloads folder to above the store root.
I know my admin/configure.php file has the correct reference to the files since I have green dots next to the downloads in my admin. I even made an incorrect entry to see the dots turn red to confirm I was changing the correct file. Then changed the entry back to the correct path.
I am able to complete the purchase of a downloadable file. And am using the redirect option and I am on a Linux server.
I know the includes/configure.php also has the correct path defined for the new location of the download folder. In the customer user account on my store the download button does show after purchase. I found I had not changed my includes/configure.php file and did not have the download button. After making the correct path entry in the file the download button shows up.
I have tried the test solution suggested on the first page of this thread http://www.zen-cart.com/showthread.php?44762-403-Forbidden-error-when-updating-product&highlight=403+forbidden and still have the 403 forbidden error.
I have found references to modifying the .htaccess files to allow my file type (in this case it is a single gpx file for GPS data). I have modified a few .htaccess files with no success. Honestly I am confused as to which .htaccess to play with to allow things?
Something that is confusing me is,…… I thought that when using the redirect download method that symlinks would be created in the pub folder. This is not happening with my installation. New folders for the download are created in the main store directory. Is this normal behavior? With the current folder creation for symlinks behavior the main store folder will quickly be cluttered with a LOT of these extra symlink folders (I will have a lot of dowmnloads).
So can anyone point me in the right direction? Is it a .htaccess issue? Is it something my server provider needs to address? Is it the synlinks being added to the main directory and not the pub folder? Is it something else? Any thoughts would be helpful. This is one of the last steps before my store is ready to go online.
Update:
I found this after writing all this.
I tried to log in with my phone rather than my computer. When I try to download the file I am given a 403 Permission denied error BUT given more information. The link points to a symlink folder/file located in my pub folder. As I see in my ftp the symlink folders are not being created there but instead are in the main store directory. Feels like my solution lies in the location of the symlink folders?
I was going to try to move one of the folders to the pub folder and see if it worked. But I found that each time the link is tried it creates a new folder with a new name. I wanted to create a folder in the pub folder to see if the link then worked. However without knowing what the name will be I can’t.
Thanks
Luke