browse gallery: 403 forbidden

Hi,
read a lot here and also tried several solutions but nothing helped, so I am sorry I have to ask:

Installed zenphoto 1.0.1 beta - no problems.
Went to administration, uploaded a few pics into a new album - no problems.
Then I hit the -browse your gallery- button and here we go:
-403 - Forbidden
You don't have permission to access /zenphoto/ on this server.-
When I go deeper and use the -edit album- function there is a link -view album- which carries the following URL: http://www.bartelsfoto.com/zenphoto/index.php?album=lara
(one of my test-albums).
When I click this link I get:
-404 Not Found
The requested URL /zenphoto/index.php was not found on this server.-

I am on a normal shared host, mod_rewrite is on, I have the RewriteBase set to /zenphoto which is the install directory from root.
/zenphoto is set to 755
The themes are in place.
albums & cache are set to 777.
I already tried disabling URL rewriting completely (edited config.php and deleted .htaccess in /zenphoto) - unfortunately this did not make any difference.

Hope someone can make any sense out of this.
Any help is greatly appreciated.
TIA, andbar.

Comments

  • Solution to this one:
    the index.php in the install directory (/zenphoto in my case) got lost somewhere in the upload process.

    After fixing this I still got senseless links on my album view page looking something like http://zen and such.

    I still had to change functions.php (look 4 it in the /zen subdirectory of your install) from the standard:

    <?php

    // functions.php - HEADERS NOT SENT YET!

    require_once("config.php");

    if (strstr(basename(dirname($_SERVER['SCRIPT_NAME'])), "zen")) {
    define('WEBPATH', dirname(dirname($_SERVER['SCRIPT_NAME'])));
    } else {
    define('WEBPATH', dirname($_SERVER['SCRIPT_NAME']));
    }
    define('SERVERPATH', dirname(dirname(__FILE__)));
    define('SERVERCACHE', SERVERPATH . "/cache");
    define('WEBCACHE', WEBPATH . "/cache");

    to:

    <?php
    // functions.php - HEADERS NOT SENT YET!

    require_once("config.php");
    /*comment out this bit
    if (strstr(basename(dirname($_SERVER['SCRIPT_NAME'])), "zen")) {
    define('WEBPATH', dirname(dirname($_SERVER['SCRIPT_NAME'])));
    } else {
    define('WEBPATH', dirname($_SERVER['SCRIPT_NAME']));
    }
    */
    define('WEBPATH', '/zenphoto');
    define('SERVERPATH', dirname(dirname(__FILE__)));
    define('SERVERCACHE', SERVERPATH . "/cache");
    define('WEBCACHE', WEBPATH . "/cache");

    as suggested here:

    http://www.zenphoto.org/support/topic.php?id=216

    I am on an Apache 1.3.27 with PHP 4.4.1 - a still quite common setup.
    So something is not working 100% perfectly with the above -if- statement but I am sorry my PHP expertise is not good enough to sort this one out - so I'll stay with the quick workaround above and say thanks to the developers and to biffta for sharing the workaround.

    Thanks, andbar.
Sign In or Register to comment.