ZenphotoCMS Forum
Can't Setup - Wrong URL For Setup File - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Can't Setup - Wrong URL For Setup File (/thread-772.html)



Can't Setup - Wrong URL For Setup File - war59312 - 2006-08-31

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




Can't Setup - Wrong URL For Setup File - antoxa - 2006-08-31

disable mod_rewrite and try to run setup again




Can't Setup - Wrong URL For Setup File - war59312 - 2006-09-04

Same!




Can't Setup - Wrong URL For Setup File - war59312 - 2006-09-13

Hi,

Any other ideas?

Thanks,

Will




Can't Setup - Wrong URL For Setup File - Rygaard - 2006-09-13

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.




Can't Setup - Wrong URL For Setup File - war59312 - 2006-09-13

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




Can't Setup - Wrong URL For Setup File - Rygaard - 2006-09-14

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.




Can't Setup - Wrong URL For Setup File - trisweb - 2006-09-14

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.




Can't Setup - Wrong URL For Setup File - muesli - 2006-09-15

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..




Can't Setup - Wrong URL For Setup File - muesli - 2006-09-15

[b]resolved in my case[/b]. hadn't tried uncommenting and manually editing path info. (as this seemed to be ruled out as a solution in this thread.)




Can't Setup - Wrong URL For Setup File - trisweb - 2006-09-15

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.




Can't Setup - Wrong URL For Setup File - muesli - 2006-09-16

sorry for distracting from the original topic!

to avoid my kind of problem i'd suggest to add the following to the config-comments ([b]bold[/b]):

Quote:// Uncomment the following two lines ONLY IF YOU'RE HAVING PROBLEMS [b]like "file not found"-errors[/b].




Can't Setup - Wrong URL For Setup File - trisweb - 2006-09-17

Sounds good, it's done.




Can't Setup - Wrong URL For Setup File - war59312 - 2006-09-28

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.


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]




Can't Setup - Wrong URL For Setup File - war59312 - 2006-10-09

Well I give up on this one.