I installed Zenphoto on my server in a subdir named 'zenphoto'. Although installation was successful, viewing/admining the site results in many errors.
What was not a good thing to do? Changing OFFSET_PATH to 0? It is the only way to make things work for me. And since that define is defined at the top of each admin script, and not in a single include file, I'll have to change it many times.
Because OFFSET_PATH is used for lots of things. But, do what you wish. What you really need to fix is the results that are returned for the PHP variable __FILE__
Comments
Then if none of the resources there help you solve your problem, try to provide us with some information.
Turns out that on my server, PHP was setting $_SERVER['SCRIPT_NAME'] to '/php/php.exe' rather than what it was supposed to be: '/zenphoto/index.php'.
Once I fixed that zenphoto appears to run fine in a subdirectory.
My apologies for the false alarm.
Please consider this thread dead. Thank you.
I did have to change the line:
define('OFFSET_PATH', 1);
in admin.php to:
define('OFFSET_PATH', 0);
for admin.php to get the path right.
What was not a good thing to do? Changing OFFSET_PATH to 0? It is the only way to make things work for me. And since that define is defined at the top of each admin script, and not in a single include file, I'll have to change it many times.