Can't Setup - Wrong URL For Setup File

Hi,

I am trying to set this mug up via:

http://www.war59312.com/gallery/zen/setup.php

But when I click login it always goes to:

http://www.war59312.com/zen/setup.php

I just uploaded the files to /gallery/ and running the installer. :(

Why? htaccess has "RewriteBase /gallery" .

Even without the htaccess file it does this so I know its not htaccess fault.

Also tried setting:

define('WEBPATH', '/gallery');

Any ideas?

Thanks,

Will

Comments

  • disable mod_rewrite and try to run setup again
  • Same! :(
  • Hi,

    Any other ideas?

    Thanks,

    Will
  • As far as I can see your link gets to the right place - have you tried entering your username and password to continue the setup process?
    BTW: If you need to use the WEBPATH you need to supply the full serverpath and not just the the folder.
  • Hi,

    Rygaard, if you click the login button you will see that it takes you to the wrong url, right password or not. So you get a 404.

    Yes I tried setting webpath to full serverpath and still the same result. As if it has no effect.

    Thanks again for your help,

    Will
  • Hi Will
    Sorry didn't try clicking the button since I obviously hadn't got any login information...
    Another idea... Where's your .htaccess file placed? Is it in your root or is it where it's intended in your gallery folder?
    Do you have:
    `

    RewriteEngine On

    # !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!

    RewriteBase /gallery`
    In your htaccess - turning on the Rewrite Engine is a must.

  • trisweb Administrator
    Note -- it should still work, though there is a bug in the redirect. After logging in, point your browser back to http://www.war59312.com/gallery/zen/setup.php and continue as normal.
  • hi, i'm having exactly the same problem. i can setup and login manually adding /photos to the path.

    however /photos is missing in all paths, so links don't work, photos and css don't show up, etc.

    those links contain the folder "cgi-system" instead of "photos" though.

    see yourself here: http://helgeat.dreamhosters.com/photos/

    ps. followed all instructions religiously..
  • resolved in my case. hadn't tried uncommenting and manually editing path info. (as this seemed to be ruled out as a solution in this thread.)
  • trisweb Administrator
    Muesli, probably a different problem. The setup bug is a known problem with the login redirect, yours is a path detection failure, which is easily fixed by manually entering them.

    Working on redoing all setup and administration currently.
  • sorry for distracting from the original topic!

    to avoid my kind of problem i'd suggest to add the following to the config-comments (bold):
    // Uncomment the following two lines ONLY IF YOU'RE HAVING PROBLEMS like "file not found"-errors.
  • trisweb Administrator
    Sounds good, it's done. :)
  • Trisweb, if I just revist the setup page it again asks for user name and password. :(

    .htaccess file is in /gallery :

    Options -Indexes
    DirectoryIndex admin.php

    # Stop Ass Holes From Reading Private Files - Just In Case ;)

    # htaccess file for zenphoto
    # NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.

    <IfModule mod_rewrite.c>
    RewriteEngine On

    # !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!
    RewriteBase /gallery

    RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
    RewriteCond %{REQUEST_FILENAME} -d [NC]
    RewriteRule ^.*$ - [R,L]

    RewriteRule ^admin/?$ zen/admin.php [R,L]

    RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
    RewriteRule ^([^/]+)/?$ index.php?album=$1 [L,QSA]
    RewriteRule ^([^/]+)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
    RewriteRule ^([^/]+)/image/(thumb|[0-9]{1,4})/([^/\\]+)$ zen/i.php?a=$1&i=$3&s=$2 [L,QSA]
    RewriteRule ^([^/]+)/image/([^/\\]+)$ albums/$1/$2 [L]
    RewriteRule ^([^/]+)/([^/\\]+)$ index.php?album=$1&image=$2 [L,QSA]

    </IfModule>
  • Well I give up on this one. :(
Sign In or Register to comment.