Welcome to the installation support forum

You can get help with installation here. There's one thing that keeps popping up that might help...

NOTE: Since 0.9, the following instructions are not needed, as the server_path and web_path variables have been abolished
The common error: "The albums directory cannot be found or is not readable" means you have the config variable "server_path" wrong. The server path is the full file path to the zenphoto directory on your server — to find this, you can use your FTP or SSH program to look at the path, or you can upload a 'test.php' file into your zenphoto directory with this one line:

`<?php phpinfo(); ?>`

in it, and visit it. In the environment variables, it shows you the path to that test.php file on the server, which is what you should use.

Comments

  • trisweb Administrator
    Also, if you're getting 404 errors (that index.php cannot be found or somesuch) - check your .htaccess file. It might be hidden and/or not changed (you have to modify the path to your own).
  • I have tried everything to sort this issue out, but to no end. The server path is right on, but I still get the error. Any ideas?
  • trisweb Administrator
    No mike, I'd have to see your installation. Got a link?
  • Hi,
    can you confirm that it works fine with a windows setup of Apache, ie a path which looks like "K:\Sites\home" (which is exactly what I get from phpinfo) ?
    Thanx.
    >tiwan

    Edit: sorry, it's K:/Sites/home for the script path, but still is my question :)

    Edit, again: sorry to be impatient, I understood it was the document_root, not the zen path :p Now everything's fine! Keep on guys, your're doing vey well (I'll post about my gallery later I think) !
  • ok.. i am hopelessly stuck | i am new to this sort of thing - first blog site | i apoligize in advance for the stupidity of this question, but here goes:

    i have installed zenphoto and got the big OK - YOU'RE DONE! (tables have been created)

    but when i go to "view my gallery: i just get an index of the directory..

    and when i go to "administrate" i just get an error 404 page (file not found)...

    i have configured the config.php file as follows//

    // The path to zenphoto on the server - e.g. /home/user/public_html/zenphoto. No trailing slash/
    $conf['serverpath'] = "/home/b/u/bulle/public_html/zenphoto";

    // The URL of zenphoto from the domain root. - e.g. 'http://www.bulledesign.com/zenphoto'
    // (or '/zenphoto' in that case). No trailing slash/
    $conf['webpath'] = '/zenphoto';

    // If you have Apache mod_rewrite, put true here, and you'll get nice cruft-free URLs.
    // MAKE SURE TO EDIT THE .htaccess FILE with your path information.
    $conf['mod_rewrite'] = true;


    and the .htaccess file as follows//

    # htaccess file for zenphoto
    # NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.

    <IfModule mod_rewrite.c>
    RewriteEngine On

    # !!! Change this to the absolute path !!!
    RewriteBase /usr301/home/b/u/bulle/public_html/zenphoto


    when i run the test.php file http:www.bulledesign.com/zenphoto/test.php)
    i get this// Configuration File (php.ini) Path = /usr/local/lib/php.ini
    but i have no idea what to do with it (? the config.php asks for a full path to the gallery, and this can't be it, can it?)

    again - i am so sorry - i'm in a bit over my head here...

    if someone could help me i would be SO grateful!

    thank you,
    k
  • trisweb Administrator
    Your server path looks right.

    The problem is the .htaccess -- by "absolute path" I do not mean "server path" - it means the path from the root of your site. For you, it would be:

    `RewriteBase /zenphoto`

    This thread had the same problem and fixed it the same way.
  • i made this change and now...

    i still get the directory page when i go to "view gallery"
    but now i get "Error: The 'albums' directory cannot be found or is not readable" when i go to "administrate"

    i realize that there is an answer to this problem posted here, but i cannot seem to get it work.. i'm at my wit's end

    here is my info again

    ++++++++++++++++++++++++++

    i changed the .htaccess file to this :

    <blockqoute># htaccess file for zenphoto
    # NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.

    <IfModule mod_rewrite.c>
    RewriteEngine On

    # !!! Change this to the absolute path !!!
    RewriteBase /zenphoto

    RewriteRule ^zen/(.*)$ - [L]
    RewriteRule ^tests/(.*)$ - [L]
    RewriteRule ^admin$ admin/ [R]
    RewriteRule ^admin/?$ zen/admin.php [QSA,L]
    RewriteRule ^admin/admin.css$ zen/admin.css [R,L]
    RewriteRule ^admin/admin.js$ zen/admin.js [R,L]

    RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [QSA,L]
    RewriteRule ^([^/\.]+)/?$ index.php?album=$1 [QSA,L]
    RewriteRule ^([^/\.]+)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [QSA,L]
    RewriteRule ^([^/\.]+)/image/(thumb|[0-9]{1,4})/([^/\\]+)$ zen/i.php?a=$1&i=$3&s=$2 [QSA,L]
    RewriteRule ^([^/\.]+)/image/([^/\\]+)$ albums/$1/$2
    RewriteRule ^([^/\.]+)/([^/\\]+)$ index.php?album=$1&image=$2 [QSA,L]

    </IfModule></blockqoute>

    and the config.php varianles are set like this:

    </blockqoute>
    <?php /* PUT NOTHING BEFORE THIS LINE, not even a line break! */
    $conf = array();
    define("DEBUG", true);

    /** Do not edit above this line. **/
    /**********************************/

    /////////// zenPHOTO configuration variables.
    // After you're done editing this file, load
    // http://www.yoursite.com/zenphotodir/zen/setup.php
    // to run the setup (of course, replacing the paths where needed).

    //// The following three only matter if your template uses them.
    // The default template does.
    // What you want to call your photo gallery.
    $conf['gallery_title'] = "CODE IS POETRY";
    // For a link back to your main site
    $conf['main_site_name'] = "BULLEDESIGN";
    $conf['main_site_url'] = "http://www.bulledesign.com/";

    // If you're in a different time zone from your server, set the offset in hours:
    $conf['time_offset'] = 0;

    // Tags allowed in comments
    $conf['allowed_tags'] = "<i><b>



    ";

    // The path to zenphoto on the server - e.g. /home/user/public_html/zenphoto. No trailing slash/
    $conf['serverpath'] = "/home/b/u/bulle/public_html/zenphoto";

    // The URL of zenphoto from the domain root. - e.g. '
    http://www.bulledesign.com/zenphoto'
    // (or '/zenphoto' in that case). No trailing slash/
    $conf['webpath'] = '/zenphoto';

    // If you have Apache mod_rewrite, put true here, and you'll get nice cruft-free URLs.
    // MAKE SURE TO EDIT THE .htaccess FILE with your path information.
    $conf['mod_rewrite'] = true;</blockqoute>

    and mt test.php is here:

    <blockqoute>http://www.bulledesign.com/zenphoto/test.php</blockqoute&gt;

    still no go...

    i greatly appriciate you taking the time to help me with this!! i know there has to be a way for me to get this working



  • trisweb Administrator
    "The albums directory cannot be found or is not readable" means exactly that. You either have your 'server_path' wrong, or the albums directory has the wrong permissions (both 'albums' and 'cache' dirs need full read/write perms - do it over FTP or SSH)
  • Database tables created fine. Able to login okay. Ran the test.php to find correct server path:
    /kunden/homepages/35/user/htdocs/zenphoto

    Here are the pertinent lines from config.php:
    The path to zenphoto on the server - e.g. /home/user/public_html/zenphoto. No trailing slash/
    $conf['serverpath'] = "/kunden/homepages/35/user/htdocs/zenphoto";

    // The URL of zenphoto from the domain root. - e.g. 'http://www.yoursite.com/zenphoto'
    // (or '/zenphoto' in that case). No trailing slash/
    $conf['webpath'] = '/zenphoto';

    and the .htaccess file:
    RewriteBase /zenphoto

    Yet when I attempt to access the Administration Panel or gallery, still receiving following error:
    Error: The 'albums' directory cannot be found or is not readable.

    I've seen your mention of 'album' and 'cache' directories - but see no such folders created from the default install. Are these supposed to be directories that already exist??? I've 777'd the directories that <i>do</i> exist, and still receive same errors.
  • trisweb Administrator
    yes, they should come with the installer. Your extractor might have ignored them because they're empty.

    Go ahead and create an 'albums' and 'cache' folder in the /zenphoto dir and chmod them to 777. Should work. Also, put the chmod on all the stuff you 777'd while experimenting back to 755 just to be safe...
  • Go ahead and create an 'albums' and 'cache' folder in the /zenphoto dir and chmod them to 777. Should work. Also, put the chmod on all the stuff you 777'd while experimenting back to 755 just to be safe..
    That was the problem. Thanks!
  • FG Member
    kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?
    kann hier niemand helfen
    Can nobody help?

    FG
  • yes.. here is what you need to do
    1. dont spam the board.
    2. start a thread
    3. explain what your problem is

    something more descriptive than "help me" would be useful.
  • dantes Member
    anyone know how to start a thread?
  • at the bottom of the first page
    http://www.zenphoto.org/support/

    there are categories
    click on the appropiate category then at the bottom of that page you will see a
    "New topic in this forum"

    post there.. :-)
  • Hi
    I used Zenphoto a while ago and am just trying to get it going again but I am doing something stupid.
    I have copied the files to the directory, and renamed the zp-config.php.source file to zp-config.php.

    I think there is something on my webspace that is not right perhaps as setup wont run.

    I get this error.
    "The server encountered an unexpected condition which prevented it from fulfilling the request.
    The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log."

    Not a pc guru, but I managed it before, just this time I am clearly missing somethings.
    My webspace supports MySQL PHP etc and is the same hosting company I used before.
  • acrylian Administrator, Developer
    You need to tell us what errors you got in the log then. Also details about what php and mysql version and what server system would be helpful.
  • You should not have to rename the zp-config.php.source file. What should be done is to upload everything to the site and run setup.php. It will make the appropriate copy of zp-config.php.source including changes to the file it deems needed for your configuration.

    Setup will also produce a system check that may identify issues on your site.
Sign In or Register to comment.