ZenphotoCMS Forum
install at root not possible? - 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: install at root not possible? (/thread-57.html)



install at root not possible? - ekfritz - 2005-10-04

I can get the install working just fine, but with one catch: it has to be in a folder. I set up a subdomain (http://photos.fritzhubbard.org/) but unless I put everything in a folder it won't work.

I think (I don't know a ton about this stuff) it has something to with .htaccess really wanting there to be something after the RewriteBase / but if it's at root level, then that is indeed the correct address, yes?

It seems to want to work, but the folders aren't accessed correctly. There's no CSS applied and the albums are no called correctly.

I've loaded the working version at http://photos.fritzhubbard.org/zp/

and the non-working version is simply minus the "zp/"

They are exactly the same, other than .htaccess

Is this normal?




install at root not possible? - trisweb - 2005-10-04

Yes, this is indeed a bug in 0.9 with the new path resolution. The .htaccess is fine, but the printed paths in the PHP files are off by a slash.

If you want you can tweak the code at the bottom of config.php to manually set the WEBPATH constant like so:

define('WEBPATH', '/');

Like I said, I'll make the paths work in a bugfix release soon.




install at root not possible? - ekfritz - 2005-10-04

Tried that, no worky for me.

If a fix is coming, don't worry about it... I can wait--I'm just a tinkerer.

So far so good, by the way. I really like where this is going.




install at root not possible? - danbee - 2005-10-05

I'm trying to do the same thing, at http://photos.pixelhum.com

Gonna have to fiddle later though, no time left now.




install at root not possible? - trisweb - 2005-10-05

Yep, I'll definately fix it in the next release.




install at root not possible? - danbee - 2005-10-06

Groovy Look forward to it!




install at root not possible? - chucky - 2006-07-09

hi i'm using the latest version, 1.0.3, but it can't make the rewriting work when installed at root ....
do i have to tweak something ??
thanks




install at root not possible? - DarrellD - 2006-07-09

You need to change a line in your .htaccess file which is in the root of your zenphoto installation.

In your case (if it's installed at the root) you should have the following RewriteBase line:
RewriteBase /




install at root not possible? - chucky - 2006-07-09

that's what i tried, but it didn't work ...