allow installing in a sub-directory

I installed Zenphoto on my server in a subdir named 'zenphoto'. Although installation was successful, viewing/admining the site results in many errors.

Comments

  • Please review http://www.zenphoto.org/support/topic.php?id=3760.

    Then if none of the resources there help you solve your problem, try to provide us with some information.
  • Well, I tought one of the developers would easily confirm the problem which was why I did not provide more information -- my bad.

    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.
  • One follow-up.

    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.
  • That was not a good thing to do.
  • maybe this thread is not dead after all...

    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__
Sign In or Register to comment.