making zenphoto on root of website but in subdirectory on disk

hi

have looked and looked, messed with settings but still can't sort it.

chickenwriggle.com on hostmoster. zenphoto installed in zenphoto_cw. htaccess in root of public_html/ correctly causes hits to chickenwriggle.com/ to get zenphoto_cw/index.php. what zenphoto generates for the subsequents links to specific albums always has zenphoto_cw in it and i want to get rid of it.

so the net effect is that instead of the first page having the following links:
http://chickenwriggle.com/zenphoto_cw/jack/
i want
http://chickenwriggle.com/jack/

have mod_rewrite on in zenphoto options, have the rewrite base set as zenphoto_cw. if i mess with any paths in the zenphoto htaccess i break things, if i mess with any of the web root directories i get a broken website.

any thoughts? yell if more info needed.

cheers
michael

Comments

  • Gurney Member
    This is feasible but to me this has to do with your webserver's configuration, not with ZP or mod_rewrite.

    You have to alias your zenphoto_cw/jack subdirectory as jack in your configuration file.

    Which server are you running?
  • acrylian Administrator, Developer
    Maybe I did not understand but why don't you just install Zenphoto in the root?
  • re: install in root

    a pedantic need for organisation. there is another zenphoto install for a subdomain running in a sub-directory. i don't want one install in root, one install in sub-directory, i want them to be peers.

    re: server

    apache 2.2.15
  • acrylian Administrator, Developer
    Ok, I see. So if you want http://chickenwriggle.com/jack/ why don't you use a folder named "jack" to install Zenphoto in in the first place?

    Since you can link a subdomain to a folder directly I don't really understand the conflict.

    Zenphoto 1: http://chickenwriggle.com/jack/ in subfolder /jack.
    Zenphoto 2 in <subdomain>.chickenwriggle.com in http://chickenwriggle.com/<otherfolder&gt;

    Of couse might be that I still don't understand the problem...;-)
  • thanks for thinking about it, sorry for my inelegant explanation. apologies for the verbose nature of the text below, trying to give as much info as i can.

    i don't want to install into http://chickenwriggle.com/jack, because we just had another son, so i want an album http://chickenwriggle.com/charlie. maybe another one for cats, maybe one for other children's parties etc.

    the net effect i want, is as if i had installed into the public_html (the web root on hostmonster setups), but it is actually in a different directory with a .htaccess in the web root translates the requests to the directory that zenphoto is installed in.

    this all must work because that is the way my subdomain is configured.

    it all works as i have it configured for the first page requested for a session at chickenwriggle.com/ however, the subsequent links that zenphoto generates all have the install directory included in them, as demonstrated in the original post:
    http://chickenwriggle.com/zenphoto_cw/jack/
    instead of
    http://chickenwriggle.com/jack/

    if it doesn't make sense i will just end up installing in the root of chickenwriggle.com and be done with the slightly messy directory structure.

    cheers
    michael
  • If all you want is an album for "charlie" and for "cats" as well as one for "jack" then just install in the root and make those albums.

    (You might want to review our terminology documentation if you really mean that you want a separate `gallery` for each. If that is the case, you best explain to us why you want such a separarate `gallery` rather than separate `albums` as I doubt we can give you a good answer without that knowledge.)

    If you are wanting to point subdomains to each of these, then you are somewhat limited by the browser protocols. Each will need its own installation at whatever level you choose. But realize that .htaccess processing pretty much prohibits you from using both subdomain and a subfolder access to the same gallery.
  • yeah, no worries. sorry for the confusion terminology.

    having one install in root for the main domain, and one install in a sub-directory for subdomain seems the only quick solution.

    i still think that there must be a way to:
    - follow the directions at http://helpdesk.hostmonster.com/index.php/kb/article/347 titled 'How to host the Primary Domain from a subfolder' to do exactly that
    - have zenphoto installed in that subdirectory
    - not have zenphoto include the subdirectory in the links that it generates

    could my desired solution lie somehwere in the WEBPATH and SERVERPATH variables on zp-config.php? i have fiddled with everyone combination of paths there but only get failed includes.

    i appreciate everyone's time. if there isn't a quick solution, something obvious that i have missed, then no stress, i appreciate the great product.

    cheers
    michael
  • re-read the original terminology comment. just to clarify, i only want separate albums for each subject in a single instance of zenphoto.
  • acrylian Administrator, Developer
    Then just install Zenphoto in the root. http://chickenwriggle.com/jack/ is a normal album url for an top level album named "jack" if Zenphoto is installed within the root of that domain.
  • fanda Member
    I'm looking solution for this too. In other subdirectories I have different domains roots (not zenphoto), main domain i one of the subdirectory operated by .htaccess in root. Also hostmonster. Everything was working fine, but zenphoto has some problems (as described above). I was trying .htaccess in zenphoto directory, WEBPATH and SERVERPATH in zp-config.php, but still didn't have solution. Do you have any idea?

    / (document root)
    /web1 (main - zenphoto, mod_rewrited by .htaccess in root)
    /web2
    /web3
    .htaccess
  • acrylian Administrator, Developer
    So you installed Zenphoto in /web1, right? Did you install zenphoto in a subfolder within that folder? You don't need to. Just put the content of the Zenphoto folder you downloaded directly in there.
  • fanda Member
    I have all zenphoto files and directories directly in /web1 (without another subdir).
    The best functionality a reached by setting
    WEBPATH to absolute url of galery (relative produces wrong relative paths)
    SERVERPATH to directory of zenphoto
    .htaccess RewriteBase /

    But still it is not without malfunctions: http://www.frantiseksidak.com/
  • acrylian Administrator, Developer
    Normally you don't need to change those two constants (I never did on any install actually but is of course server dependent).

    What exactyl does not work on that site? Seems to work as expected for me.
  • fanda Member
    I comment WEBPATH again, SERVERPATH is set in config and now it looks like it it working. Thank you for your advice.
  • fanda Member
    Works fine (on hostmonster with main domain web in subdirectory):
    WEBPATH empty string ('')
    SERVERPATH zenphoto directory
    .htaccess RewriteBase /
Sign In or Register to comment.