Koozali.org: home of the SME Server

Photo gallery site examples

Ray Mitchell

Re: Photo gallery instal to an ibay
« Reply #15 on: January 26, 2003, 01:18:47 PM »
Dear Terry or others
I just installed gallery to an ibay following the HOWTO at http://sme.swerts-knudsen.dk/.
I have not applied the second fix you referred to re AllowOverride Options FileInfo
as I will not be using nested albums, and assume it may not be strictly necessary.

Gallery appears to have installed OK, although when I run the setup page I do have some errors. It seems that these may not be neccessary to fix up but just want to check. Refer to errors below.

I can create albums and upload photos, but the problem I have is that none of the photos will display at all, either as thumbnails or full images.

The errors in the setup page are:
1)
Warning!
Apache is not obeying your .htaccess file. Try entering the following into your web server's httpd.conf file:


   AllowOverride Options FileInfo
   

2)
Warning!
Magic quotes are on. Your webserver owner can turn them off by putting:
   magic_quotes_gpc = Off
in your php.ini file

3)
Warning!
Either mod_rewrite is not installed or your .htaccess file is not enabled (see above). Either way, we'll have to use longer URLs in the Gallery. If you want to turn it on I'd suggest that you make sure that your .htaccess file works and then if it still doesn't work you may need to reconfigure and rebuild Apache with this flag:
--enable-module=rewrite

4)
Warning!
I can't find ImageMagick. If it's installed and not in the path of the webserver user that's OK -- you can specify the path to ImageMagick by hand on the following page. If it's not installed, you must install it. Gallery prefers ImageMagick version 5.4.8 and up. You can compile and install the entire ImageMagick package from www.ImageMagick.org. Note: They also have binaries available for assorted operating systems. If you can't get it working, try leaving the ImageMagick path blank and using NetPBM instead

The nice message at the bottom said
Your installation has warnings, but life is short so let's GO!

I clicked on Configure Gallery and then entered the appropriate locations for my gallery, note that the Path to ImageMagick was left blank, then clicked on Album Defaults. The next screen looked OK so I clicked on Save settings.
The next page lists the settings as follows: (URLs edited out)


 /* Version */
$gallery->app->config_version = 31;
 
/* Features */
$gallery->app->feature["zip"] = 1;  
$gallery->app->feature["rewrite"] = 0; // (missing GALLERY_REWRITE_OK -- it's optional)  
$gallery->app->feature["mirror"] = 0; // (missing mirrorSites -- it's optional)  
 
/* Constants */  
$gallery->app->galleryTitle = "Photo Gallery 1";  
$gallery->app->pnmDir = "/usr/bin";  
// optional ImPath missing
$gallery->app->graphics = "NetPBM";  
$gallery->app->highlight_size = "200";  
$gallery->app->zipinfo = "/usr/bin/zipinfo";  
$gallery->app->unzip = "/usr/bin/unzip";  
$gallery->app->use_exif = "/usr/bin/jhead";  
$gallery->app->movieThumbnail = "/home/e-smith/files/ibays/gallery1/html/images/movie.thumb.jpg";  
$gallery->app->albumDir = "/home/e-smith/files/ibays/gallery1/html/albums";  
$gallery->app->tmpDir = "/home/e-smith/files/ibays/gallery1/html/temp";  
$gallery->app->photoAlbumURL = "http://www.######/gallery1";  
$gallery->app->albumDirURL = "http://www.######/gallery1/albums ";  
// optional mirrorSites missing
$gallery->app->showAlbumTree = "no";  
$gallery->app->cacheExif = "yes";  
$gallery->app->jpegImageQuality = "95";  
$gallery->app->timeLimit = "30";  
$gallery->app->debug = "no";  
$gallery->app->use_flock = "yes";  
$gallery->app->expectedExecStatus = "0";  
$gallery->app->sessionVar = "gallery_session";  
$gallery->app->userDir = "/home/e-smith/files/ibays/gallery1/html/albums/.users";  
$gallery->app->pnmtojpeg = "ppmtojpeg";  
 
/* Defaults */  
$gallery->app->default["bordercolor"] = "black";  
$gallery->app->default["border"] = "1";  
$gallery->app->default["font"] = "arial";  
$gallery->app->default["cols"] = "3";  
$gallery->app->default["rows"] = "3";  
$gallery->app->default["thumb_size"] = "150";  
$gallery->app->default["resize_size"] = "640";  
$gallery->app->default["fit_to_window"] = "yes";  
$gallery->app->default["use_fullOnly"] = "yes";  
$gallery->app->default["print_photos"] = "shutterfly";  
$gallery->app->default["returnto"] = "yes";  
$gallery->app->default["showOwners"] = "no";  
$gallery->app->default["albumsPerPage"] = "5";  
$gallery->app->default["showSearchEngine"] = "yes";  
$gallery->app->default["useOriginalFileNames"] = "yes";  
$gallery->app->default["display_clicks"] = "yes";  
$gallery->app->default["public_comments"] = "yes";  


If the other steps and fixing up the errors is required then I will do that, but is it really neccessary to fix them.
Will any of the errors above be causing the images to not appear.
Any suggestions appreciated.

Thanks & regards
Ray Mitchell

Ray Mitchell

Re: Photo gallery instal to an ibay
« Reply #16 on: January 26, 2003, 01:49:06 PM »
Dear Terry & others
I guess I should add that the server is sme 5.5 upd2.
The version of Gallery is 1.3.2

I also ran the Gallery Diagnostics page, it reports:
php v4.1.2 and there is oodles of info displayed.
NetPBM appears OK, all binaries test as OK
ImageMagick reports 3 errors with binaries (I guess as I did not install this)
PHP session configuration reports an id as OK, although when I try to run this test again I receive the following;
ERROR
The requested URL could not be retrieved
--------------------------------------------------------------------------------
While trying to retrieve the URL: [no URL]
The following error was encountered:
Zero Sized Reply
Squid did not receive any data for this request.

What have I done wrong to cause the images not to appear ?
It's not much of a photo gallery the way it is now !!
Any help appreciated
Regards
Ray Mitchell

Ray Mitchell

Re: Photo gallery instal to an ibay
« Reply #17 on: January 27, 2003, 03:09:13 PM »
It is Ok now.
After a bit of reading of FAQ's I ran the setup screen again, changed the album location to something incorrect, then saved, then ran setup again and set the album location to the original correct setting and voila, I can see images in my albums now !
The settings must not have been properly saved the first time ??!!
Thanks anyway
Ray Mitchell

James Douglas

Re: Photo gallery instal to an ibay
« Reply #18 on: January 30, 2003, 12:31:13 AM »
strange Ray bec I have the same problem right now...thought it was somehting I did but Im seeing the same thing, config seemed ok but the images I upload appear as black and cant click to get the full image. everything else seems to work though ie create albums etc.

can u be more specific as to what you did to fix the problem?

Ray Mitchell

Re: Photo gallery instal to an ibay
« Reply #19 on: January 30, 2003, 04:20:33 AM »
Dear James

In the config for Gallery there is a field which specifies the location of the albums.
The location I had there was correct, but I was not seeing the images.
I reran the config and changed the location of the albums from .../ibayname/galley/albums to ..../ibayname/gallery and then saved the config.
Of course I still could not see the images as the album location was now definitely incorrect (deliberately so).

I then reran the config and entered the correct gallery location eg ..../ibayname/gallery/albums (which was what I originally had there) and then saved. After that I was able to see the images. For some reason the location must not have originally registered with the program until I forced it to accept the change.

Hope this helps
Regards
Ray Mitchell