Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Mar 2008
    Posts
    55
    Plugin Contributions
    0

    Default Unable to move download directory up one level

    Zen Cart 1.3.8a
    Database Patch Level: 1.3.8
    MYSql PHP on Linux hosting service.

    I can not get the system to recognize the changed download directory location. It says it doesn't exist.

    I followed the instructions in the tutorial section. "How do I relocate my download directory outside my webroot....."

    From configure.php in two places. includes, and admin/includes.
    ============================
    define('DIR_FS_CATALOG', '/usr/local/pem/vhosts/163130/webspace/httpdocs/quantum/audio_zen/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    ============================

    Ok, so I changed this line - in both files - above to:
    define('DIR_FS_DOWNLOAD', '/usr/local/pem/vhosts/163130/webspace/httpdocs/download/');

    which is where the directory should live.

    The SystemInfo option points out the path as well,
    _ENV["ORIG_PATH_TRANSLATED"] /usr/local/pem/vhosts/163130/webspace/httpdocs/quantum/audio_zen/admin/server_info.php

    I do own httpdocs, having a working web site there.

    So I'm stumped actually. Will it do it or won't it?
    I guess it's not 100% necessary, but would be a bit of a help.

    I've searched the entire internet, and while I find this talked about a lot, no actual solutions seem evident?

    Thanks anyone

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Unable to move download directory up one level

    The tutorial is correct, and has worked perfectly every time I've used it.

    I'm guessing that Apache/PHP doesn't have permission to read the folder; hence the error message to that effect.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Unable to move download directory up one level

    Yes, I figured this had to be the case. Something like this anyway. But how do I solve that? I'm on a hosting provider, but however. I am the owner (user?) of the whole tree.
    webspace/httpdocs/ is actually the home of a web site of mine, and the one where I have zen is below that, in quantum. Yet another website. Hmmmm - how do I explain that.
    Website one. httpdocs/
    Website two. httpdocs/quantum/ --> zen directory.

    So I figured it would be easy to put 'downloads' into httpdocs.

    Also, if it's actually the physical path that it's referring to, it shouldn't matter to Apache should it?
    /usr/local/pem/vhosts/163130/webspace/httpdocs/download/

    The error is telling me the download directory doesn't exist, not that it doesn't have permission.
    Anyway - very strange. And apparently no way of finding out what the problem is.
    Thanks anyway.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Unable to move download directory up one level

    Yes, but if for some reason its existence is being undetectable because of a permissions problem or misspelled foldername ... then that's what it's going to tell you.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Mar 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Unable to move download directory up one level

    Ah. Ok. I see. I guess I will have to try and discover why it has no permissions to physically look up one level in the tree.


    Hmm, to put it another way. If it can see into
    /usr/local/pem/vhosts/163130/webspace/httpdocs/quantum/audio_zen/

    why cant it see into

    /usr/local/pem/vhosts/163130/webspace/httpdocs/download/

    Download is set to 755 by the way.

    Don't know. Back to the drawing board I suspect. Trust me to have the only hosting company in creation that has something odd in place.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Unable to move download directory up one level

    An aside comment ... moving the download folder to just another folder under the httpdocs folder still makes it fully accessible by browsers and thieves.
    Generally speaking, one would want to move it *above* the webroot (in your case httpdocs).

    But that's unlikely to make any difference with respect to the problems you're encountering at present.


    Did you happen to make sure you made your configure.php files writable *before* editing the folder path? And then make them read-only again afterwards? If you didn't do that, then your changes won't be getting saved on the server ... which of course makes the error message legitimate.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Mar 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Unable to move download directory up one level

    Thanks, yes, done all that. Unset permissions, edit, reset.

    The way the hosting is set up, someone trying to get to the download directory would actually have to go to an entirely different website. Odds are about .. uncountable of them guessing the right one.

    In any case, I believe that to be a red herring. The config script is apparently looking at the True Path .... now that has to be a pun...
    /usr/local/pem/vhosts/163130/webspace/httpdocs/download/

    and not seeing the directory? Which is unexplainable so far.
    I'll get back to it tomorrow and see if I can root out the cause.
    Looking at the web log files is a pain. Hard to get to. oh well

    I might just leave it all where it is and trust in the good old .httpaccess and index file.

    Thanks for the help though. Much appreciated.

  8. #8
    Join Date
    Dec 2009
    Location
    UK
    Posts
    11
    Plugin Contributions
    0

    Default Re: Unable to move download directory up one level

    Yes normally such problems are caused when files and folders have nobody ownership.

    Make sure the ownerships are changed to user ownership.

  9. #9
    Join Date
    Mar 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Unable to move download directory up one level

    Thanks, I'll look into that.

  10. #10
    Join Date
    Mar 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Unable to move download directory up one level

    Mea culpa. Mea maxima culpa.
    You are not going to believe this.

    As I said, rattling on above ..... it was a path matter.
    It was. The NEW directory is SUPPOSED to be called /download ....
    NOT /downloads

    Sorry for the confusion folk, and thanks for the advice, even though teaching me to read might have been the best bit of advice.

    I can't actually create the directory in the parent of httpdocs without begging the Hosting Provider, and I don't need the drama at this stage. So I'm happy with it were it is, which is outside the webroot of the site anyway.

    so yep. Working.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 16 Mar 2012, 08:01 PM
  2. I have installed to a directory. How do I rename or move that directory?
    By nelly7 in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 18 Dec 2011, 11:15 PM
  3. Unable to add Categories or edit them at Top Level
    By ChrisZ in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 25 Nov 2010, 05:51 PM
  4. Adding another sub-directory level to Image Directory?
    By erko in forum General Questions
    Replies: 0
    Last Post: 31 May 2010, 12:33 PM
  5. Can't figure out how to move from one directory to another
    By weartmc in forum General Questions
    Replies: 9
    Last Post: 2 Jul 2008, 09:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg