Member
Member
Harper   2005-09-23, 16:47
#1
I have completed the install and am getting the following error when clicking "You can now View your gallery" at the end of the install -> Error: The 'albums' directory cannot be found or is not readable.

I am running Apache & MySQL on WindowsXP. I have configured the 'zen/config.php' and the '.htaccess' file. I feel pretty confident that they both are setup correctly because when I try different variables within them, I get "page can not be displayed errors". I used MySQL Administrator to create a DB called zenphoto and assigned an account with all priviledges for the zenphoto DB. Going back a page and looking at where the "You can now View your gallery" link resolves to, it is resolving to "www.xyz.com/zenphoto/" (xyz being my domain). I would quess this is correct. Any ideas? Thanks in Advance!
Developer
Developer
trisweb   2005-09-24, 01:07
#2
Look at the sticky and all the mentions of this error everywhere else...

Your server_path variable is wrong. Check the config.php... follow the instructions here if you don't know the right one.
Member
Member
Harper   2005-09-24, 03:36
#3
After reviewing my serverpath in config.php, I tried changing it from "/zenphoto" to "C:\apache2triad\htdocs\wordpress\zenphoto". Now I can access the "administrate" link from the zenphoto setup first page, but still am still getting the same error about the 'albums' directory when I trying the 'view your gallery' link. I also reviewed my server paths after running the test.php script and noticed all the paths listed were to the 'bin' directories for perl, php, mysql, etc. Should my backslashes be changed to forward slashed in the config.php file ? Thanks!
Developer
Developer
trisweb   2005-09-24, 06:19
#4
That server path looks correct...

Oh! Yes, use forward slashes. The backslashes are escaping characters...

You could have just tried forward slashes without asking ;-) Figuring things out by yourself is a good thing Smile
Member
Member
Harper   2005-09-24, 13:25
#5
Still no zenphoto. I am able to use all functions of the administrate screen (upload pictures, choose themes, etc), but can not "View Gallery" from this screen. I do not think there is any combination left untried with the config.php. In the .htaccess the only variable I can see worth mention is "RewriteBase /zenphoto", which I believe is correct. Without knowing any PHP, I am guessing the problem starts somewhere in the 'template-functions.php' file. I am able to upload pictures to an album I created called "Desktop Backgrounds". If I force my browser to 'xyz/zenphoto/themes/default/index.php' I just get a blank screen. also I am hoping that the "$conf['mod_rewrite'] = true;" statement in the config.php is also correct.
Member
Member
amory   2005-09-24, 15:21
#6
Did you try disabling the mod_rewrite in the config file? I initially had an issue installing, and doing so enabled me to access the admin interface...(later found that it was an incorect server variable)
Developer
Developer
trisweb   2005-09-24, 21:54
#7
By "can not 'View Gallery' from this screen" what do you mean? If you're still getting the same 'albums directory cannot be found' error, then it [i]is[/i] your server path or the permissions on the directory.

I wouldn't try going directly to the theme pages - the template functions and headers aren't included there.

Also try without mod_rewrite, yes.

How about a dump of your config.php?
Member
Member
dillanlaughlin   2005-11-01, 22:17
#8
hey I'm having the same problems. I have searched the forums and tried all the tricks many times over. I'm stumped.

I have modified the config.php and .htaccess files according to the instructions. The MySQL database is setup with appropriate structure and has connected to zenphoto without a problem. the path for my zenphoto stuff is domain.com/zenphoto/
And yes of course I have sucessfully chmod 777 to both the cache and albums folders.

Below are the dumps of my files:

config.php
<?php /* PUT NOTHING BEFORE THIS LINE, not even a line break! */
$conf = array();
define("DEBUG", false);
/** 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).

// NOTE: web_path and server_path are no longer needed! :-)

// Database login information (the most important part).
$conf['mysql_user'] = "sqlusername";
$conf['mysql_pass'] = "sqlpassword";
$conf['mysql_host'] = "mysql.server.net"; // Probably won't need to change this.
$conf['mysql_database'] = "mydatabasename";
// If you're sharing the database with other tables, use a prefix to be safe.
$conf['mysql_prefix'] = "";

// What you want to call your photo gallery.
$conf['gallery_title'] = "my photos";

// 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'] = "<a><i>[i]<b>[b]
Quote:[list]
[list=1]
[*]";

// 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;

// Admin interface username (also required for running setup).
$conf['adminuser'] = "admin";
// Obviously insecure, don't put anything here you don't want anyone to see...
// but make sure you change it to something other than 1234...
$conf['adminpass'] = "123456";

// Image Processing Configuration

// Maximum size in Megabytes of the cache folder (where processed images are stored).
// After this is hit, a cleanup function will run and delete some least recently used resized images.
$conf['maxcache'] = 100;

// JPEG Compression quality for all images and thumbnails (respectively):
$conf['image_quality'] = 85;
$conf['thumb_quality'] = 75;

// Default image display width (themes will be able to control this
// to an extent in the future, but for now you may have to adjust it to fit your theme).
$conf['image_size'] = 595;
// If this is set to true, then the longest side of the image will be $image_size.
// Otherwise, the *width* of the image will be $image_size.
$conf['image_use_longest_side'] = true;

// Default thumbnail size and scale:
// If $thumb_crop is set to true, then the thumbnail will be a centered portion of the image
// with the given width and height after being resized to $thumb_size (by shortest side).
// Otherwise, it will be the full image resized to $thumb_size (by shortest side).
// NOTE: thumb_crop_width and height should always be less than or equal to thumb_size
$conf['thumb_crop'] = true;
$conf['thumb_crop_width'] = 85;
$conf['thumb_crop_height'] = 85;
$conf['thumb_size'] = 100;

// Paging options.
// Control of their display is done in the theme, so you might need to change these
// after switching themes to make it look better.
$conf['albums_per_page'] = 5;
$conf['images_per_page'] = 15;

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

$_zp_conf_vars = $conf;

if (basename($_SERVER['SCRIPT_FILENAME']) == "i.php" || basename($_SERVER['SCRIPT_FILENAME']) == "admin.php") {
define('SERVERPATH', dirname(dirname($_SERVER['SCRIPT_FILENAME'])));
define('WEBPATH', dirname(dirname($_SERVER['SCRIPT_NAME'])));
} else {
define('SERVERPATH', dirname($_SERVER['SCRIPT_FILENAME']));
define('WEBPATH', dirname($_SERVER['SCRIPT_NAME']));
}
define('SERVERCACHE', SERVERPATH . "/cache");
define('WEBCACHE', WEBPATH . "/cache");

?>

.htaccess

# 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 [R,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>

Please help!!!
[/list]
[/list]
[/b][/i]</a>
Member
Member
dillanlaughlin   2005-11-01, 22:19
#9
BTW - I am using the 0.9-beta release
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.