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
The address is http://www.roker.zabrze.pl/galeria/ . With 'index.php' in address is OK, without - no...
OK. Thanks a lot...
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
Your site is displaying correctly for me without the index.php part. But for future reference, the server software does have to be configured to consider index.php a "default" script/page. Also there would be a priority of evaluation:
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"
Hello sbillard. Thanks for replay
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
That looks like a server config thing then as sbillard mentioned. Your server apparentl does not pick index.php by itself as the index page. Better ask your host.
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).
I've just done it and it works, so for me problem is solved. But but as to the server configuration it isn't so easy. In other directories, for example main, index.php is automatically activated (this is the name of the main page file of the site).
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
Thanks for the kind words. You can also run your entire site using Zenphoto, btw...
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.
Thanks for trying to help us. If you don't mind, maybe you can add an echo $_SERVER['SCRIPT_NAME']; line to your index.php page and report back the result. No need to change the WEBPATH define for this. You can leave it so it works.
I am trying to understand why some servers do not automatically detect the proper Web path.