Hello
Installing gallery on my server I changed name of main folder from default 'zenphoto' to 'galeria' (it means 'gallery' in Polish). Now, when I'm trying to launch
http://myserver/galeria/index.php all is correct, but when I'm invoking only
http://myserver/galeria/ - index.php loads, but it assumes that its address is 'myserver/index.php'! Displaying page source you can see, that all addresses starts in main folder, not in '/galeria'. Because of that there is no theme, css formatting and I cannot load any link from main page. I don't understand what's going on...
Sorry for my bad English
Regards
Comments
I started setup at once in this new directory and there's a line 'RewriteBase /galeria' in .htacces
I have currently no idea besides the rewrite base.
I first tried with the default theme, and all was the same. After that, I tried with another theme, and, at last, I've copied default theme, because I wanted to look into files.
I will try to find a solution... Maybe something is wrong with the server?
Thanks again and regards
index.html, index.htm, default.html, ... so if you had a "page" matching one of the higher priority defaults then that would get chosen rather than your Zenphoto `index.php` sctipt.
[edit] or posts crossed in the ether. We do not know either why some servers do not work correctly when we "auto detect" the `WEBPATH`.
It would be interesting to know what the value of `WEBPATH` is if you do not edit the files as you did. BTW, only the file in `zp-data` needs to be edited. the one in `zp-core` is the "template"
You're quite right: if there is index.html and index.php in one directory on "my" server, always the first one is chosen (problem is, that it isn't 'de facto' MY, and so I can't configure it ) But this time I'm sure, that there is only one index.php.
I can't answer your question about value of WEBPATH without modification. I have no technical knowledge about PHP and I don't know how to check it. This was the first thing, I wanted to check, when I found this constant in the source, but I didn't know how to do it. So I started to look for it in the files, and when I found it, i tried to change it.
If there is any method to track PHP script from client side I can change things back and check the value of WEBPATH
You could also try to manually define the webpath in the config file within zp-data. But since it partly works I am not sure if that is the actual issue. (never seen this behaviour).
Anyway thanks for the help - your gallery is very interesting, and I am seriously considering transfer of my personal photo gallery, from Gallery3 to ZenPhoto, which seems to be much lighter and quicker.
Best regards
Stan
To your issue, all I can say is that I never encountered such a behaviour on any install I ever did on several shared hosts. It always worked "out of the box" without any manual defining of the webpath. But we added it some years ago as somehow some servers do need it.
I am trying to understand why some servers do not automatically detect the proper Web path.